08-31-2008
vidhyadhar pso,
I have already check it its not work
and what work is:
nohup `fg %<jobs_id>`
but i want some command which also work for "sleep 100" type of cmd.
10 More Discussions You Might Find Interesting
1. AIX
I wrote a ksh script for Helpdesk. I need to know how to disable ctrl-c,ctrl-z,ctrl-d..... so that helpdesk would not be able to get to system prompt :confused: (6 Replies)
Discussion started by: wtofu
6 Replies
2. Shell Programming and Scripting
Hello,
I have bunch of shell scripts, which I want to execute every hour in the background. So I created a script mainscript.sh which executes these hourly scripts in the background. Script goes like this.
mainscript.sh
#!/bin/sh
nohup sh subscript1.sh &
nohup sh subscrip2.sh &
exit 0
... (5 Replies)
Discussion started by: papachi_2000
5 Replies
3. UNIX for Dummies Questions & Answers
Yesterday I started a nohup job called assoc.sh. It has not finished running, but I have realised a problem with my script, so wish to cancel it, modify and restart it. However, I cannot find the PID, so can't cancel it. I have searched the ps list and nothing resembles my job - how can I cancel... (13 Replies)
Discussion started by: polly_falconer
13 Replies
4. Shell Programming and Scripting
Hi,
I want to run a particular script present in a different server.
At the moment I am trying to run it like this:
(sleep 3; echo $USERID; sleep 1; echo $PASSWORD ; sleep 1 ; sleep 1 ;
echo "nohup perl myscript.pl $* &")| telnet "$server"
But the problem is that once the script has... (6 Replies)
Discussion started by: King Nothing
6 Replies
5. UNIX for Advanced & Expert Users
Hi,
I want to write a script which should be run only on foreground. Is there any way that the script can check itself whether it was run using nohup or ksh and if the user runs the script using nohup then it should prompt the user to run it using ksh?
If (The user triggers the script using... (4 Replies)
Discussion started by: RRVARMA
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I need execute a script every 30 minutes. As might be done without using cron
Thx. (6 Replies)
Discussion started by: pepeli30
6 Replies
7. AIX
Hi,
I ran a program like following sample.sh &
Later I realized that this job will take more hours to complete. Since it consumed 2 hours dat aprocessing and I don't want to terminate and then start the job like
nohup sample.sh &
Can you please tell me, is it possible to make this job no... (5 Replies)
Discussion started by: shahnazurs
5 Replies
8. UNIX for Dummies Questions & Answers
My job is launched using this command: I'm at home and having VPN drops so I used nohup and background.
nohup perf_mon -c rating_4_multi,cfg &
The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies
9. Shell Programming and Scripting
load_cursor_stmt()
{
ls /db/admin/ddl/rmn01000/load_cursor*.sql|while read file
do
echo "${file}"
`nohup db2 -tvf "$file" \&`
done
}Error:
-------
/admin/ddl/rmn01000/load_cursor5.sql /db/admin/ddl/rmn01000/load_cursor6.sql
+ read file
+ echo... (3 Replies)
Discussion started by: Hangman2
3 Replies
10. Shell Programming and Scripting
I have a problem here.
i am running my script in nohup but if i run it 2 or three time , in my output i see it is giving me old data as well, in-spite i delete nohup.out file.
i tried to look a lot from where the old data is coming.
can some one tell me how the old data is also coming again and... (11 Replies)
Discussion started by: mirwasim
11 Replies