Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Shell output file
Name: mlawton40 Date: January 29, 2009 at 03:20:53 Pacific OS: Windows XP CPU/Ram: 1.18GHz/2GB RAM Product: Intel / CORE 2 DUO Subcategory: General
Comment:
Hi,
I'm creating a shell script and have the following example of what I'm trying to do:
if ps -ef | egrep -v egrep | egrep -q example then echo example OK else echo example IS NOT RUNNING fi
if ps -ef | egrep -v egrep | egrep -q example2 then echo example2 OK else echo example2 IS NOT RUNNING fi
I want the output (e.g example ok) then on the next line (e.g example2 ok) in a file e.g. outcome.log/txt instead of it being printed on the screen.
Summary: Thanks for your help, apprently I am getting just one singe file named "rm_cpr_082707." I need to get individual output files with last three chars, e.g. rm_cpr_082707_asm (for asm data only), rm_cpr_...
Summary: Hi, I was wondering if anybody knew how to make a shell script that will make a backup of a file example (mv out out.bak) but the next time you run the script i want the original backup file to still ...
Summary: Higgies: I'm still not certain what you want to do, but how about getting the basename of the file object and passing that to your awkscript to build an output file? The output of find looks like this...