Operating System - HP-UX
1855367 Members
3260 Online
104110 Solutions
New Discussion

<job name not known> from background jobs

 
SOLVED
Go to solution
Rainer von Bongartz
Honored Contributor

<job name not known> from background jobs


When I start a job in the background, i.e.

tail -f cache.log&

and submit a jobs command a get the message

[1] + Running

putting in the foreground results in
# fg %1


The job is running and can be killed with kill %1.

Any ideas why the job name is not known ??


Regards
Rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: <job name not known> from background jobs

tail -f is not designed to be run as a batch job. The man page doesn't specifically call out any limitations but as many sysadmins have found out, it wasn't really designed to be used in a script or background.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor
Solution

Re: <job name not known> from background jobs

Hi


I have seen this before and it was solved by setting up a history file.

Does your user have a history file.

HISTFILE=$HOME/.history
HISTSIZE=1000 lines to keep


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Rainer von Bongartz
Honored Contributor

Re: <job name not known> from background jobs

Thanks Steve

setting up a history file solved it

Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...