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


ADVERTISEMENT

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

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 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 :: 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

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

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 :: Error - Failed To Save File ImageMagick Returned Error Code 11 Command Line

May 1, 2010

simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?

View 6 Replies View Related

Ubuntu :: How To Save Session And Remember Running Applications Between Thems

Feb 1, 2011

I used to use kubuntu last years, but I decide to give Ubuntu a try instead.A thing that was working on kubuntu's KDE by default, is that when you close your session, the system remembers what applications was you using, so in the next boot up they will be open exactly as it was.I would like to have this feature also on my Ubuntu 10.04, but I've been not lucky searching for the option to enable it.

View 1 Replies View Related

Ubuntu :: Running From USB Drive - Possible To Save Things - Download Programs - Drivers?

Apr 18, 2010

A few sectors on my Hard drive on my toshiba laptop are having issues, so i have to load Ubuntu (9.10 i believe) from a USB drive. Is is still possible to save things, download programs, drivers, and anything so i can still use most of ubuntu's features without everything resetting after a reboot?

View 1 Replies View Related

Software :: Running Lkl - No Output

Apr 17, 2010

The following produces no output, why is that? lkl -l -k /usr/share/lkl/keymaps/us_km -o /var/tmp/file.out # uname -a Linux 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux

View 1 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

Programming :: Find Command With Standard Error Output And Mail Error File

Nov 11, 2010

We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to admin@companyname.com. What would be the code for this issue to add it to our find command in the same bash shell script??

View 2 Replies View Related

OpenSUSE :: Recover Data Form Old 5.25 Floppies - ERROR: Cannot Read `/dev/fd0' (Input/output Error)

Mar 15, 2010

I don't know the format of these old floppie disks, ive tried

Code:

PC8-248suse:~ # file -s /dev/fd0
/dev/fd0: ERROR: cannot read `/dev/fd0' (Input/output error)

how i can go about reading this data?

View 9 Replies View Related

General :: Error - Gzip :stdin:input /output Error /bin /gstar :unexpected EOF In Archive

Mar 28, 2011

when iam opening my dec_backup folder the folling error is appering :

the error is gzip :stdin:input /output error
/bin /gstar :unexpected EOF in archive
/bin /gstar: error is not recoverable :exesting now

View 1 Replies View Related

Debian :: Running Same Process Multiple Times(from Another Account) / An Instance Of Newsbeuter Is Already Running Error?

Aug 6, 2010

Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.

View 1 Replies View Related

General :: No Output In Keyboard Logger Running In VirtualBox

Jun 14, 2010

I'm trying to run LKL (Linux Keyboard Logger) in a Ubuntu 9.04 VirtualBox VM (VirtualBox 2.2.2 running on a XP host). The package installs fine, but when I try to run it lkl -l -k /usr/share/lkl/keymaps/us_km -o ./kbd.log & it hogs the CPU usage to 50% and never logs a keystroke (in fact the kbd.log file is never created)

View 1 Replies View Related

Ubuntu :: Output Data To Running Process In Terminal?

Jul 10, 2011

There is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:

Code:
gomoku -b

it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?

I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.

Code:
echo "black" | gomoku -b

just finishes. After that when you type another command like:

Code:
echo "justsometext" | gomoku -b

gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.

How do I pass text to an already running gomoku?

View 2 Replies View Related

General :: Running Script On Ssh Command Line Want To See Output?

Jun 2, 2011

I'm trying to remotely run a script on a target machine though the ssh command-line using passwordless login. I know the keys are set up correctly because if I remove the call to the script, the ssh session succeeds and I can log into the remote machine, but when I call the csh script, I don't get any output on the command line. If I call an identical bash script, I do get the output. Specifically, calling line 1 below just returns me to the command line, but running line 2 echo's hello then returns to the command line (both scripts simply contain a single line to echo hello, and both work when run locally on the remote machine). Why do my csh scripts send any output through the ssh link whereas the bash does?

Code:
1) ssh -i /root/.ssh/id_rsa user@remotemachine /tmp/test.csh

2) ssh -i /root/.ssh/id_rsa user@remotemachine /tmp/test.bash Update: I have further determined that nothing I add to the csh gets run either. I've tried touching files and making directories in the scripts, and all gets run using the bash script, but calling the csh script like line 1 above does nothing, nothing is touched or created.

View 4 Replies View Related

Ubuntu Multimedia :: Ffmpeg / Mtv Format - Error "Unable To Find A Suitable Output Format For Output.mtv"

Jan 22, 2011

I'm still trying to find out if my coby mp3 player will actually play mtv video files as is advertised.

ffmpeg -formats does list mtv but the only command I really ever used was one to convert a vid to an mp3 so I tried Code: ffmpeg -i test.mp4 -acodec copy output.mtv it returns Code: Unable to find a suitable output format for 'output.mtv' I can't find any mtv files online for purchase or free for that matter, so I know this is all pretty obscure but shouldn't there be a way to convert them since ffmpeg lists mtv format?

View 6 Replies View Related

Debian Configuration :: Error Starting Domain: Internal Error Process Exited While Reading Console Log Output

Sep 9, 2010

I have mounted an NFS share with ISO images on my kvm Server. If i connect such a iso to a VM (using virt-manager) for installing a operating system i get the following error on startup: Error starting domain: internal error Process exited while reading console log output: char device redirected to /dev/pts/1 qemu: could not open disk image /mnt/iso/public/Linux/Distributions/Debian/debian-504-amd64-netinst.iso: Permission denied

The problem is definitly that kvm (or qemu or libvirt-bin, i don't know) tries to set permissions (rwx owner for libvirt-qemu, --- for kvm group, --- for other) on the file, although it has read permissions. Is it possible to change this behavior?

View 1 Replies View Related

Software :: Output Sound From Flash Videos To Esd Running On Another Machine

Sep 13, 2010

This could be easy but I obviously don't find the way myself, so I'm asking.I have esd running on a small device (router running OpenWRT).This has a large harddrive and a soundcard attached via USB and I'm using it to play my music via mpd, which also runs on this little device.Can't use pulseaudio, which would be better I suppose, because pulseaudio is not available for OpenWRT latest, so it's got to be esd.Playing the sound of movies I watch on my laptop through this device also works.I use mplayer and its esd-output - works nicely.

What I miss and want to do is:direct all sound from my laptop to esd on the above device.Specifically I would like to hear the sound of flash clips like those on ..... or metacafe through the nice speakers attaced to the device rather than through my laptops really low quality speakers.What I've done to get mplayer to output the movies sound through esd is:I just set the ESPEAKER environment variable to the IP of the router - and run mplayer with -ao esd.I also set the default audiosink to be esdsink - but this appearently has not the desired effect.Would I need to have esd running on my laptop?

View 1 Replies View Related

Ubuntu Networking :: Save The Changes After Setting Up The Preferences In Smb4k - Error

Jun 9, 2011

Installed smb4k on a fresh install of 11.04. When I tried to save the changes after setting up the preferences in smb4k, I got this error message: Configuration file "/root/.kde/share/config/smb4k_sudowriterrc" not writable. Please contact your system administrator. The file does not exist. There is only one file in the directory: kdebugrc I have smb4k successfully running on an EEE 1201PN with 11.04. Seems crazy but when I check this machine, there is no directory in root .kde.

View 2 Replies View Related

Ubuntu Installation :: ERROR - Erase Disk And Install Ubuntu Input / Output Error During Read On /dev/sda

Jul 16, 2010

I am fully aware that these following photo's are not all required for a full understanding of my issue, but I will post them regardless. Checklist to see if my computer meets best results possible for the installation. Screenshot.jpg These photos showing here are where I plan on Installing Ubuntu

Screenshot-1.jpg
Screenshot-2.jpg

NOTE: The installation has started, but only to shortly be stopped by my error message.

Screenshot-3.jpg

This is my ERROR!!! message

Screenshot-4.jpg

No matter what I try to click on, the window simply ignores the command, regardless of the amount of times I issue the command.

View 1 Replies View Related

Server :: NFS Large File Copies Fail - Error Writing To File: Input/output Error?

Jun 27, 2009

I recently upgraded my file/media server to Fedora 11. After doing so, I can no longer copy large files to the server. The files begin to transfer, but typically after about 1gb of the file has transferred, the transfer stalls and ultimately fails with the message:

"Error writing to file: Input/output error"

I've run out of ideas as to what could cause this problem. I have tried the following:

1. Different NFS versions: NFS3 and NFS4
2. Tried copying the files to different physical drives on the server.
3. Tried copying the files from different physical drives on the client.
4. Tried different rsize and wsize block sizes when mounting the NFS share
5. Tried copying the files via a different protocol. SSH in this case. The file transfers are always successful when I use SSH.

Regardless of what I do, the result is the same. The file transfers always fail after approximately 1gb.

Some other notes.

1. Both the client and the server are running Fedora 11 kernel 2.6.29.5-191.fc11.x86_64

I am out of ideas. Has anyone else experienced something similar?

View 13 Replies View Related

Ubuntu :: Permissions - Save A File Into The Partition And Get An Access Denied Error

Oct 10, 2010

I mount a partition to a directory and ls -liah tells me that everyone has read/write/execute permissions on the whole thing, but I try to save a file into the partition and I get an access denied error. First of all this doesn't make sense because ls is telling me I do have access.

Then it gets weirder. I run sudo chown -R me:me directory. The command exits without error, but then when I go and look at the directory again with ls, it still shows up as owned by root and I still have the same problem. This is particularly strange because I am still able to change permissions normally in the operating system filesystem. It just won't work on the mounted partition.

View 1 Replies View Related

Ubuntu :: Firefox - Unable To Save Files By Right Clicking And Save As

Jan 13, 2010

I have Ubuntu 9.10 dual booting with Windows7.My ext3 /home is mounted as F: in windows.I share a firefox profile between them so that when i am in Windows my firefox uses the same profile as it does when in Ubuntu.It all worked great until recently. I am unable to save files by right clicking and save as. In the config i am unable to set a directory to save to. It neer asks me where to save to. Just nothing happens. some off my book marks are all messed up as well, my rss feeds have the same post on some random website every time i log on and i have to manually refresh to get the correct feeds back. I am unable to delete the random bookmark.

View 1 Replies View Related

General :: Error:backend-not-running Backend Not Running As Expected (yumex Will Close)

Mar 9, 2010

i installed yumex:yum -y install yumex, when i start yumex it came with this error:fatal error:backend-not-running backend not running as expected (yumex will close) how can i solve it?

View 10 Replies View Related

Ubuntu :: Xrandr Doesn't Save Changes - How To Make It To Save Changes

Jun 16, 2010

my mediacenter is attached to an beamer with the optimal resolution of 1280*720 ubuntu 10.04 doesnt offer me this revolution (on my intel 915 graphis controller). this means i have to add this resolution to the possible resolutions. first i used cvt

Code:

cvt 1280 720 60

and got this result:

Quote:

# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync

then i added this to xrandr

Code:

xrandr --verbose --newmode "1280x720" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync

and

Code:

xrandr --verbose --addmode VGA1 1280x720

now i can select and use the new resolution - until next reboot. after an reboot 1280x720 is again not available. even if i work with sudo - the resolution isnt there....

View 1 Replies View Related

Ubuntu :: 5 - Input - Output Error

Nov 19, 2010

Today went from jaunty to koala then to lucid. The package manager doesnt work nothing works in terminal for apt-get or anything getting the message ---->

View 1 Replies View Related







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