![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running RSH on the background | eamani_sun | Shell Programming and Scripting | 2 | 06-02-2008 02:37 PM |
| Parameters and background | gio001 | UNIX for Dummies Questions & Answers | 8 | 11-14-2007 05:18 PM |
| background process | jerardfjay | Shell Programming and Scripting | 1 | 09-07-2005 12:03 PM |
| background job | babayeve | UNIX for Dummies Questions & Answers | 3 | 05-25-2005 11:08 AM |
| Background job | rdbooth | UNIX for Dummies Questions & Answers | 1 | 03-23-2004 07:59 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
It looks to me that your script only executes one "date" command and stops then....
What exactly are you trying to do with it? With only one line it will execute immediately and then be finished... If you want it to run indefinitely do this. # vi datermitteln while true do /usr/bin/date +20%y-%m-%d done However, that is a very strange command... If you are trying to capture this for another script, just assign it to a variable... # DATE=`/usr/bin/date +20%y-%m-%d` # backtics btw... # echo $DATE 2003-09-05 |
|
|||||
|
Kelam,
Joerg's issue seems to be with the job stopping - I had to set in the script to turn tostop on (stty tostop ) to get the script to have the same issue as Joerg. Unfortunately, I haven't had time to get back to it. Joerg, I tried this on Solaris and HP-UX and could not make the job stop unless I set tostop (instead of turning it off like you were trying). What OS are you using? |
|
|||||
|
RTM, that was my point ... the script WILL stop b/c it only runs one command.
Maybe I am misunderstanding his problem... Does he want it to keep running or to stop running? I cant find a use for this script myself... why not make it a variable in a script? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|