LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2012, 01:02 PM   #1
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Rep: Reputation: 7
I can't transcript an install.


To transcript, I type:
Code:
script -a
or
Code:
script filename.txt
To install, I type:
Code:
sudo apt-get install
I just can't get them both to work together
 
Old 10-03-2012, 01:48 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
How about:
Code:
script -ac "sudo apt-get install"
The -c tells it to execute the command rather than invoking a subshell. The quotes around the command and its arguments insures that is what the -c acts upon.

Similar syntax works for me on RHEL:
Code:
script -ac "sudo yum list"
I don't have a system using apt-get but it seems it should work there as well as the purpose of both yum and apt-get is package management for their respective distros.
 
Old 10-03-2012, 01:59 PM   #3
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
Thanks, but is there a way to name the file in the command?
 
Old 10-03-2012, 04:19 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Yes - the argument after command is the file name:

Code:
script -ac "sudo apt-get install" filename.txt
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH/bash session transcript theillien Linux - Server 2 03-20-2012 09:47 AM
LXer: Transcript: Ciaran O'Riordan on the End Software Patents campaign LXer Syndicated Linux News 0 04-01-2009 12:10 AM
LXer: RMS transcript on GPLv3, Novell/MS, Tivo and more LXer Syndicated Linux News 0 11-27-2006 11:33 AM
LXer: The unabridged selective transcript of Richard M Stallman's talk at the ANU LXer Syndicated Linux News 0 04-06-2006 10:03 PM
LXer: Microsoft's Yates' to MA: How About 2 Standards? - Transcript LXer Syndicated Linux News 0 12-16-2005 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration