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 -->
  #2 (permalink)  
Old 01-12-2004
Perderabo's Avatar
Perderabo Perderabo is offline
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,334
Not going to work. Sorry.

You can pause and restart the process. But it will resume where it left off.

You can use fc to edit the history and repair the command. But if you run it, you run a new copy of the process.

But there is a solution here. Your program, "my_executable_file", does not need to accept whatever the shell feeds it for stdin. If it must output to "my_outfile", it should simply open the file itself. Then the error you're worried about becomes impossible.

If you can't modify the program, write a tiny shell script that invokes it correctly. Then just run the script each day.