Prashanth
Just see the stopped jobs by typing the command
fg
i.e dat jobs will come up in foreground
Thanks
Kishor
Prashanth
Just see the stopped jobs by typing the command
fg
i.e dat jobs will come up in foreground
Thanks
Kishor
No Kishore,
there is no result while executing this command
$ fg
ksh: fg: no such job
Prashanth
if there are stopped jobs it should show right?!!!!
Why its not showing anything and
we are getting the message"There are stopped jobs"
i couldn't understand.
Yeah Kishore , I cant understand whats happening....
see the o/p in the same session :
$ crontab -l
00 00 * * 6 /gdbuat4/backupscripts/weeklyexp10g.sh >> /tmp/export.log
$ fg
crontab -e
$ ps -ef | grep oracle10 | grep crontab | grep -v grep
$ ps -ef | grep oracle10 | grep crontab
oracle10 25397 24446 0 15:27:20 pts/3 0:00 grep crontab
$ fg
ksh: fg: no such job
$ fg
ksh: fg: no such job
$ crontab -l
03 12 * * * /gdbuat4/backupscripts/dailyexp10g.sh >> /tmp/export.log
35 15 * * * /gdbuat4/backupscripts/sample.sh >> /tmp/export1.log
$ crontab -l
03 12 * * * /gdbuat4/backupscripts/dailyexp10g.sh >> /tmp/export.log
35 15 * * * /gdbuat4/backupscripts/sample.sh >> /tmp/export1.log
$ fg
ksh: fg: no such job
grial, your comments please
How are you saving changes? pressing CRTL-Z?????
If you are using vi as EDITOR, just save changes pressing the following keys:
<ESC>:wq<INTRO>
I think the problem is that you're not used to vi
To list your "current stopped jobs", use the "jobs" command.
man jobs
for more info.
No grial
I am saving using ESC>:wq<INTRO>
thats why i was able to check the changed entry in the crontab while issuing command crontab -l right!
Hey Prashanth
You didnt kill the crontab process.
Whats displayed there is the command process you have typed.
"oracle10 25397 24446 0 15:27:20 pts/3 0:00 grep crontab"
You killed pid &ppid i.e 25397 and 24446 right.They are not the right ones.
We didnt get the process id for crontab process.so we have to get the pid for crontab first.ok.
And regarding fg
You got the output for fg.
At the first attempt it showed as below.
$ fg
crontab -e
Dat means still this process is running at the background.it is not killed.
Am i right grial.
Thanks
Kishor
What I'd like to know is whether you are using CTRL-Z combination, when and why...
The o/p you show us makes me think you do...
Kishore
$ ps -ef | grep oracle10 | grep crontab | grep -v grep
oracle10 28591 28590 0 15:55:17 pts/3 0:00 sh -c ed /tmp/crontabbFaO13
oracle10 28590 28589 0 15:55:16 pts/3 0:00 crontab -e
oracle10 28592 28591 0 15:55:17 pts/3 0:00 ed /tmp/crontabbFaO13
Now I want to kill
oracle10 28590 28589 0 15:55:16 pts/3 0:00 crontab -e right!!!!!
28590 is the process id right!
kill -9 28590
Am I right!!!!
Oh my God!!!!!!
kill -9 28590 28591 28592
Yes Prashanth Exactly.
Now do one thing.
Close your session
Open a new one.
First set ur Editor variable to vi
Dont do crontab -e without
Open crontab file as crontab -e.
Save ur file with :wq.
Dont do Ctrl-Z or Ctrl-D
Close that session.open a new one and check.
Then we'll see.
Thanks
Kishor
I made the changes and checked more than thrice.
Now it's working fine.
Thanks a lot grial and Kishore.
Its a very good experience.
Thanks for your valuable time.
Thanks and Regards,
Prashanth
Great Team Work !!!
Thanks
Kishor