- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using another user to run a script yields error
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
Forums
Discussions
Discussions
Discussions
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
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
02-29-2004 11:41 PM
02-29-2004 11:41 PM
I had created this script owned by root that will execute a script owned by another user. if I execute the script on the command prompt, everyting goes through. But if I use nohup to execute the script at the backend. It returns the error -
Cannot start job control
stty: : I/O error.
My script (owned by root) is as follows -
su - testusr1 -c "/home/testusr1/test_print.sh"
Can someone please advise me? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2004 11:53 PM
02-29-2004 11:53 PM
Re: Using another user to run a script yields error
You can run script as sh -vx ./script and check where it is failing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 12:17 AM
03-01-2004 12:17 AM
Re: Using another user to run a script yields error
would it be a big deal to post the script as attachment?
Is the script trying to change attributes of the tty?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 04:44 PM
03-01-2004 04:44 PM
Re: Using another user to run a script yields error
I had executed the script using the sh -vx command. I do not see any errors coming out from that. The only error that I see is when I used the nohup. My script is very simple, since it's for testing purpose, it is doing a single print statement thats all.
Regards,
Khian Wei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 03:58 AM
03-02-2004 03:58 AM
SolutionIf you are not worried about the environment
su testusr1 -c "/home/testusr1/test_print.sh" should work.
If you need the user env. set the need ones in the test_print.sh.
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 06:29 AM
03-02-2004 06:29 AM
Re: Using another user to run a script yields error
Best of luck.
Regards,
dl