"all 48 hours" -> set up a cron job doing that every 2nd day.
Try to just do something like
If the demon doesn't keep a file handle open on this log, it will be zeroed. Else you might want to check if there is any log options for this demon or maybe stop it, zero the log and start it again.
I am trying to submit background jobs using the nohup command on a client system where my session is running under a "master shell" (BASH). If I try to nohup the actual job (ie: nohup MYJOB.BAT > MYJOB.LOG 2>&1 &) the command will fail with a return code of 126 and a "permission denied" message.... (0 Replies)
While executing a ksh file with a input parameter in background like the following
bash-2.03$nohup fil.ksh 4 &
the nohup session is stopped.
The same ksh file while executed like
bash-2.03$fil.ksh 4
works fine.
I am trying the above in Solaris 5.8 in bash shell. Please let me... (2 Replies)
Hello folks,
I have got a script which telnets to different boxes and runs a certain script with 3 run time args.
The line from the script which does it is:
(sleep 1; echo $USERID ; sleep 1; echo $PASSWD ; sleep 1 ; echo y ; sleep 1 ; echo "\r" ; sleep 1 ; echo "cd $FILEPATH" ; sleep 1 ; sleep 1... (1 Reply)
Hi,
I am kinda confused with this, am not sure what is happening
i have a script say test.sh
----------
cat myfile | while read line
do
exit 2
done
echo "out of loop"
-----------
as it is evident, the exit should cause the script to terminate ,hence producing no output for the... (1 Reply)
Hello
I am running this script inst.sh
#!/bin/ksh
sqlplus -s username/password @temp.sql
----Here is my temp.sql
set serveroutput on
select instance_name from V$instance;
exit
When i run the script inst.sh on the command prompt...it runs fine...but
when i run it using... (5 Replies)
Hi, but it is possible to effect a sftp in???
thanks thousand
Germanico
---------- Post updated at 07:01 AM ---------- Previous update was at 05:51 AM ----------
Hi, but it is possible to effect a sftp in nohup mode??? (2 Replies)
I am trying to execute following code:
alarm_file_array="test1.alarms test2.alarms test3.alarms test4.alarms"
for file in ${alarm_file_array}
do
nohup tail -f $file |awk 'NR>10' >> output.alarms 2>/dev/null &
done
Whenever it tries to execute nohup command it hangs because of the... (3 Replies)
Hi All
I am struggling to get a process to run in the background on a Ubuntu Linux machine. I run: -
/home/brad > /usr/bin/nohup sudo /home/brad/spideroak/jsystem/runner/runAgent < /dev/null &
5611
/home/brad > /usr/bin/nohup: appending output to `nohup.out'
+ Stopped (SIGTTOU) ... (9 Replies)
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Hi
I need to execute about 1000 scp commands sequential , so I made "scp.sh" - like this
scp - rp ...
scp - rp ...
............
scp - rp ...
then I run
nohup sh scp.sh &The problem is: nohup process stopped when I closed session, or when the session expired,... Something wrong :(:(:(
... (4 Replies)