- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- funny background jobs?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 06:39 PM
07-20-2003 06:39 PM
funny background jobs?
I just encounter one funny problem when I am running background jobs at HP-UX11.0 workstations. The command I am using is: nohup sh script &. The simulation takes about 8 hours. I find out that:
1) when I run it from the console of the workstation, when I quit from the CDE, my background job will be tominated;
2) however, when I log in to the workstaion and telnet to other workstation and run the background at the other worksation, then I quit everything. My job will be still running at the other workstation?
Anyone know the reason and how to solve it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:45 PM
07-20-2003 07:45 PM
Re: funny background jobs?
echo '*loginShell: true' >> $HOME/.Xdefaults
then logout from CDE and back in again. Now when you start a terminal window, you should see the 'normal' login messages.
Now start a background process as in:
nohup sleep 500 &
And from another telnet session, see that sleep's PPID is your your current shell (it will have - as in -sh if you make the above change to .Xdefaults). Now exit CDE and your telnet session should show sleep now has PPID 1 rather than a shell.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 10:06 PM
07-20-2003 10:06 PM
Re: funny background jobs?
Quite interesting.
Just wanted to know what effect the "*" has in,
echo '*loginShell: true' >> $HOME/.Xdefaults, and when is it used.
Thanx
-Alvi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 02:02 AM
07-21-2003 02:02 AM
Re: funny background jobs?
honestly i don't know why,
but you need a stable platform to start your simulation, i suggest you two ways:
- schedule them with cron/at
- use screen (donwload at http://hpux.connect.org.uk/)
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 05:12 PM
07-21-2003 05:12 PM
Re: funny background jobs?
Without going into great detail about Xresources, a resource can be assigned to a specific program or window name as in:
HPterm*loginShell: true
In this case, the window's name restricts the loginShell setting to only HPterm windows. By leaving out the HPterm and leaving just *, then all windows will receive this resource setting. In HP-UX, only hpterm, xterm and dtterm do anything with this value. You can set specific terminal emulatorsto have a different geometry, screen size, colors, etc. Here is an example .Xdefaults file:
*loginShell: true
HPterm*scrollBar: true
HPterm*saveLines: 10s
HPterm*background: navy
HPterm*foreground: white
Xterm*background: darkslateblue
Xterm*foreground: white
Xterm*saveLines: 10s
Xterm*scrollBar: true
Dtterm*saveLines: 10s
Dtterm*scrollBar: true
It is important to note that Xwindow resource names are case sensitive...loginshell is not the same as loginShell (the former is just silently ignored).
Bill Hassell, sysadmin