Ubuntu :: Save All Terminal Output To A .txt File?

Mar 15, 2011

I sometimes stick my neck out and provide somewhat detailed, and often risky, "Mr-fix-it" remedies for boot problems. Now, I know it's possible to amend each command with "whatever_command > whatever.txt" in which case it'll place the command output in a file in /home.

But if you're directing someone to run a lot of commands as I did here is it possible to save the output of all commands to a .txt file without amending each command?

Or is it already saved somewhere that I'm not yet aware of? I wouldn't be surprised if the latter were true, I just haven't yet found it

View 4 Replies


ADVERTISEMENT

General :: Show Output On Terminal And Save To A File At The Same Time?

Jul 1, 2010

I am using:

user@unknown:~$ sudo command -option > log

to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?

I am using ubuntu 10.04 lts.

View 3 Replies View Related

Programming :: Sed - Save Output To File With Filename From Content Of Another File?

Feb 28, 2011

My employer issues pdf files with everyones work schedules. I copy the content and save it as plain text in a file called unformatted (hope to be able to automate this step someday). Im working on a SED script that reduces unformatted to only display what I want to see and saves the result in a file Iïve named formatted. After that I have to manually copy formatted and save it with that days date as a filename e.g. 2011-02-25 or whatever day is scheduled in the pdf, for use on a mobile device (Nokia N900). I noticed that the date occurs on certain lines in the file so I added a line like:

sed -n 's/^Date: (201[1-9])/([0-1][0-9])/([0-3][0-9]).*/1-2-3/p' < unformatted >theDate
That creates a file theDate with the date in it that I wish to use as the filename for this particular instance. So I would like to skip the file formatted all together and have the sed- script write to a new file using the content of the Date as a filename, but how do I make that happen? And of course it would be more elegant if I could skip the intermediate theDate file as well.

View 4 Replies View Related

Ubuntu :: Save The Output In A File (or Log) To Check If Error?

Mar 10, 2011

I have a bash script that i created for a colleague to configure the servers he installs. It does package installations, modifies some config files, creates directories.

The problem is sometimes he says that the script skips some steps. There are some steps that require user input and i think he chooses wrong option. (i have tested the script and it works fine).

My question is how can i save the output in a file (or log) so i can check if there are error? I know about the ">>" operators but will this "script.sh >> output.txt" still bring the dialogs for user input (like read input from shell and mysql password dialog from install package)? And how can i record everything he inputs?

I read about logger, but since there are a lot of commands do i have to log every command or can i just log the whole script.

View 3 Replies View Related

Software :: Save Output Of Bash File?

Jul 11, 2011

I've shell bash file script and I want to save the output into a txt file.I Know ./bash.sh > output.txt will save the result into a file but i want to add something into a bash file and then when the bash file process completed, it save the result into a file and I don't want that overwrite the output into the old file, I want each time i run it, it save the result into a new file.

View 6 Replies View Related

General :: Save The Output To A Log File Without Wiping The Previous Contents?

Jul 25, 2010

For example, I run a program called "luck" and it outputs a sentence like "good luck". Then "./luck -> logfile" will save the output content to logfile.But when I run another program called "hello" and it outputs a sentence lie " Hello world".Then "./hello-> logfile" will save the output content to logfile and wipe the previous contents.Is is possible to keep both sentences in the logfile? Just like

View 2 Replies View Related

Ubuntu Multimedia :: Terminal Command In Script To Save File

Sep 28, 2010

I use webcam with the streamer application. So, to record a video I have to put in terminal something like this:
Code:
streamer -q -c /dev/video0 -f rgb24 -r 24 -t 00:30:00 -o /home/shark/untitled.avi
I know I can use other applications but I have got problems with all except with this. This is really annoying because it is a delay job. So, I am wondering how can I make a script that the terminal will ask me to name the file or even better to ask where to put my file.

View 9 Replies View Related

Ubuntu :: Capturing ALL Output From Terminal To File?

Apr 17, 2010

I would like to capture all output spewed to a terminal session including processes that are terminated that were invoked from a script running in a terminal window. this is beyond capturing just stderr and stdout . for example

{
./script
} 2> stderr.cap 1>stdout.cap

if script is terminated (including because of memory violations) I get spewed output to the terminal I would like to capture that spewing to a file automatically or to a bit bucket /dev/null Is there another filehandle which can be redirected to do this? If so how or is there another way???

View 3 Replies View Related

General :: Open Browse For File Window And Save User Choice In Terminal?

May 30, 2010

is there a Terminal command to open a Target file (same as the one opens when you want to upload a file), let user choose the file and when he clicks open, be able to save his choice?for example:echo "Choose source file"--> command needed to browseand then open or save path to that file

View 1 Replies View Related

Ubuntu Multimedia :: Creating ISO File In Terminal - Input / Output Error

Feb 15, 2011

I'm trying to create an iso file in a terminal with the following command:
$cat /dev/sr0 > nameofdisk.iso
I get the following error
cat: /dev/sr0: Input/output error
I already checked and my optical drive is indeed /dev/sr0. I've hunted google a few hours trying to figure it out. Does anyone know why I'd be getting this error?

View 4 Replies View Related

General :: Copy Previous Output From Bash Terminal To File?

Oct 26, 2010

I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>

View 2 Replies View Related

Ubuntu :: Log The Command Output's History That Are Previously Printed Messages In The Terminal To A File?

Apr 23, 2011

is it possible to log the command output's history that are previously printed messages in the terminal to a file? that is the first command output when i first opened terminal through the last command.

View 5 Replies View Related

Software :: Redirect ALL Terminal Output To File And Screen (for Entire Session)?

Jul 6, 2010

Is there one command that will let me record an entire terminal session (with any possible errors) to a text file while also seeing all output on screen too? I know it can be done for individual commands, but I'm looking to do this for an entire session where the individual commands will be normal (i.e., not piped into tee, etc.). It would be even better if the command prompt is captured too. The obvious utility of this makes me think someone surely has come up with a solution long ago (probably in the 60's).(I'm sure it goes without saying, but subsequent output in that session should be appended to the file. The file should contain the full history, with all output and errors, of the session.)

View 9 Replies View Related

General :: Append Command Output To File By Giving Command In Terminal?

Jul 3, 2009

I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?

View 4 Replies View Related

General :: How To Redirect A Terminal/tty Output To Other Terminal/tty

Dec 14, 2010

hello
I tried to find a good subject but it was the best of mine, anyway I'll explain it here.
some time I do some thing like installing a new application in Linux terminal of my office PC but it take a long time and I have to go home during its installation or configuration process that it is not good to cancel it.My current solution is abandoning the process until next day. I wanted to know is there any way to redirect an input and out put of a terminal to another one, if it works I can continue my abandoned process by ssh to my Linux office PC and redirect that terminal to my new remote sshed terminal from my home.

Thank a lot for any help.

View 4 Replies View Related

Software :: Save Error Output Of A Running App?

Jan 7, 2010

I started a command, it needs very much time. and i have to save the (error-)output. but i forgot it.

is there a way to save the output of a running process? because the process runs over this night and i want to know what did the process do.

View 3 Replies View Related

General :: Can't Save Grep Output Into Variable / Solution For This?

Feb 3, 2010

I would like to grep two numbers out of a text file, and divide them.

Here is the script code...

It feels like grep saves a new line too? or what is happening? i simply can't divide them, as it handles the variables as they are empty (and prints the two numbers although they were not printed

View 6 Replies View Related

Ubuntu :: Starts Conky But Also Shows "output To That Terminal So You Can't Do Any Other Commands To That Terminal"

Jan 24, 2010

if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...

View 9 Replies View Related

Ubuntu :: Terminal History Does Not Save Everything

Mar 3, 2011

the terminal history does not save commands starting with "./"

View 2 Replies View Related

Ubuntu :: Cannot Save Environment Variables In Terminal?

Feb 12, 2010

In terminal, I use the command " export XXX="xxx" " to create a new environment variable, and then " env | grep XXX " to check if it is existed. But when I run the terminal again, the variable I created is disappeared. I've found it just can't save the variables I created..

View 3 Replies View Related

Ubuntu :: Automatically Save Terminal Sessions?

Nov 23, 2010

i'd like to ask how could I save my Terminal Sessions to a text file or something like the option we could do at Putty or Kitty?

View 1 Replies View Related

General :: How To Save Environment Variable From Terminal

May 14, 2011

I am trying to save the PATH environment variable from the Terminal running on a Ubuntu system.I typed in the following however it does not get saved.

export PATH=/home/david/Komodo-Edit-6/bin/:$PATH

View 1 Replies View Related

General :: Terminal With Options - Save Common Commands To A Hot Key?

Oct 12, 2010

I am looking for a terminal app that will allow me to save my password and maybe set up some sessions since I often log into multiple machines each day. Also is there something out there that will allow me to save common commands to a hot key?

View 1 Replies View Related

Fedora Networking :: Terminal Server Client Unable To Save Profile

Nov 27, 2009

I can successfully connect to a remote Windows Computer using Terminal Server Client but I cannot save the profile (Fedora 12).This means I have to enter the details every time I wish to connect. As I have many different remote locations I need to access on a regular basis is there any way to save the profiles?

View 6 Replies View Related

Ubuntu :: Get Mouse Position In Terminal Output?

Jun 19, 2010

I want to know how to get the current coordinates of the mouse outputted to terminal, for use in a bash script.

View 1 Replies View Related

Ubuntu :: Capture Output From Synaptic Terminal?

Dec 9, 2010

In synaptic package manager when I expand "Details" tab (at the time when some software is installed or removed), I can see a terminal. I want to capture the output of terminal into a file. I tried to highlight and right click. But there is no context menu(copy, cut)

View 4 Replies View Related

Ubuntu :: Slow Down Text Output In Terminal?

Feb 15, 2011

I'd like to write a script that invokes a gnome-terminal session which slowly reads out text like the phosphor screensaver (could be anything, a log file, ascii art, song lyrics, whatev) and then closes. I can invoke a terminal using [gnome-terminal -e 'cat /var/log/dmesg'] but the output flies pass by too quickly.any way to slow it down? I know it seems like an odd request but if anyone has a suggestion I'd love to hear it.

View 3 Replies View Related

Ubuntu :: Copy The File Via SSH \ Save The File Via SSH To This Server?

Mar 22, 2011

Now i install the Ubuntu 10.4 64 bit on Sunfire X4170I want to save the file via SSH to this server.But i m not sure how to configure.

View 4 Replies View Related

Ubuntu Installation :: Don't Ave The Terminal Output From The Update Manager?

Sep 29, 2010

I have searched a lot for solutions of this problem, but there seems to be no solution that works for me. It was time to update my installation... AS I have NEVER updated it. So I ran the update manager and launched updates. Many packages completed, but linux-image-2.6.32-25-generic (2.6.32-25.44) gave me a lot of errors. I don't ave the terminal output from the update manager, but I have info from apt-get install -f. I am using root account.

Code:
root@ubuntu:~# apt-get upgrade vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y

[Code]...

View 3 Replies View Related

Ubuntu Security :: Post Terminal Output In Forum?

Apr 23, 2011

I've done some searching on googlubuntu for and answer to this but haven't found anything.

As a Linux newbie I was wondering if there are certain types of output from the terminal I should beware of posting for everyone to see? Also are there any codes; that, if I were to be asked to run and report the output on, should raise a red flag?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved