- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: My weekly scripting problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО04-04-2003 01:07 AM
тАО04-04-2003 01:07 AM
My weekly scripting problem
/usr/bin/dsmc schedule 1>/dev/null 2>&1 &
/usr/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 01:10 AM
тАО04-04-2003 01:10 AM
Re: My weekly scripting problem
Does it work if you nohup it?
As in:
nohup /usr/bin/dsmc schedule 1>/dev/null 2>&1 &
Cheers
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 01:15 AM
тАО04-04-2003 01:15 AM
Re: My weekly scripting problem
However it may also be a problem that the startup scripts don't get a controlling tty from init. Try to run the beast from cron... if that works then this should not be the problem.
And you should redirect stdin also.
So the 1st guess would be:
# nohup /usr/bin/dsmc schedule /dev/null 2>&1 &
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 02:04 AM
тАО04-04-2003 02:04 AM
Re: My weekly scripting problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 02:09 AM
тАО04-04-2003 02:09 AM
Re: My weekly scripting problem
I would try to put
# /usr/bin/at now + 1 minute < /usr/bin/dsmc schedule 1>/dev/null 2>&1
without the final "backgrounding" &
Hopely this will activate the process at the right time (after boot)
HTH
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 02:28 AM
тАО04-04-2003 02:28 AM
Re: My weekly scripting problem
perhaps it's related to the environment...there's a fairly limited environment set up when the startup scripts are called - try typing this at the command prompt:
env | sort > /tmp/env_in_interactive_shell
and then add this to your startup script:
env | sort > /tmp/env_in_startup_shell
Now reboot to allow the script to run in the standard way, and then compare the files using diff
Anything stand out?
Cheers
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 02:31 AM
тАО04-04-2003 02:31 AM
Re: My weekly scripting problem
/usr/bin/dsmc schedule 1>/tmp/dmsc.log 2>&1 &
Cheers
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 03:28 AM
тАО04-04-2003 03:28 AM
Re: My weekly scripting problem
Apart from difference of user(?) and environment when starting the script at boot time and running it from the command line, there is perhaps another thing: is the execution depending on something available/being up and running that is perhaps not present at boot time?
Regards,
john k.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 05:17 AM
тАО04-04-2003 05:17 AM
Re: My weekly scripting problem
echo /path/to/your/script | batch
Next check you e-mail for the output from the job. This should tell you 1) if the script makes it untill the invocation of the dsmc command, 2) whether the dsmc command is started and 3) whether the dsmc command was still running at the end of the script. This should give you a clue as to the cause of the failure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 10:51 AM
тАО04-04-2003 10:51 AM
Re: My weekly scripting problem
/usr/bin/dsmc schedule 1>/tmp/dmsc.log 2>&1 &
And use the system auto startup/shutdown script to call this script. See if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 10:56 AM
тАО04-04-2003 10:56 AM
Re: My weekly scripting problem
in the /sbin/init.d/adsm startup file
under the
start)
nohup /usr/adsm/dsmc sched > /var/adm/syslog/adsm.log 2>&1 &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2003 05:27 AM
тАО04-07-2003 05:27 AM
Re: My weekly scripting problem
We add the following line to our /etc/inittab file so dsmc starts automatically when the system boots and will respawn if it dies unexpectedly, it seems to work pretty well for us. All of our HP systems are setup this way.
adsm::respawn:/opt/tivoli/tsm/client/ba/bin/dsmc sched >/dev/null 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2003 08:08 AM
тАО04-07-2003 08:08 AM