Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fg: No current job.



dear all,

I had a strange thing happening today:

[drum:~] g% fg
fg: No current job.

[drum:~] g% ps
PID TT STAT TIME COMMAND
9350 std Ss 0:00.57 -tcsh (tcsh)
9352 std S 0:00.78 tail -f /var/log/exim_mainlog

[drum:~] g% fg
tail -f /var/log/exim_mainlog

that job had been put in the background using bg (this is essential, a stopped job is properly fg-ed). I can reproduce it now on two machines, I did not notice it before... it looks like fg only works after the ps command has been issued. It also works if I give the job number explicitly (this is another machine):

[ti:~] g% fg
fg: No current job.
[ti:~] g% jobs
[1] Running tail -f /var/log/exim_mainlog
[ti:~] g% fg
fg: No current job.
[ti:~] g% fg [1]
tail -f /var/log/exim_mainlog


Am I overlooking something?
This is on a 10.2.2 and 10.2.6 machine.

Thanks

Giuliano

--
H U M P H
|| |||
software

Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.