The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-12-2004
alan's Avatar
alan alan is offline
Registered User
 

Join Date: Jul 2003
Location: Los Angeles
Posts: 53
"Process management" question

This one will show how "wet behind the ears" I am but here it goes...

Suppose my boss wants me to run an app every day from the command line. The command line statement looks like this:

$> my_executable_program -my_parameter file > my_outfile

Let's say that one day, I do this:

$> my_executable_program -my_parameter file

and forget to send my output to a file. I have two problems:

1/ my program massages *tons* of data and takes 18 hours to run
2/ It is critical that my boss has the output file for data analysts to review.

Since I don't want to restart my program for scratch, can I...

-pause my process ... like "kill -24 <processnumber>" ,
-edit the command line ... like "fc -e vi my_executable_program..."
-restart my program where it left off... "kill -26 <processnumber>"

(I got the `kill` values on the HP-UX documentation...)

This may sound like a stupid question. I am only trying to learn...thank you for being patient/teaching me.

Al.
Forum Sponsor