- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with scripts
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
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
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
тАО01-14-2004 01:12 AM
тАО01-14-2004 01:12 AM
When I run commands in scripts they are failing. The same commands (all fully pathed) run without problem if run manually. It seems to be an issue with the environment or something like that.
Anybody any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2004 01:19 AM
тАО01-14-2004 01:19 AM
Re: Problem with scripts
Can you give us an example? Post a script? Is it all scripts? All commands?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2004 01:20 AM
тАО01-14-2004 01:20 AM
Re: Problem with scripts
#!/bin/ksh
|| or at least the shell you use when executing your scripts.
set -x
might show what it does when you're examinig the script.
tusc /path/to/programm may give you quiet some info too (if you know what it means.
An example of the script and the error output might be handy.
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2004 01:21 AM
тАО01-14-2004 01:21 AM
Re: Problem with scripts
That usu fixes most problems with scripts not running where a command line does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2004 01:21 AM
тАО01-14-2004 01:21 AM
Re: Problem with scripts
It's not all scripts, it's specific to scripts associated with FileNET Software, FileNET have said that the problem seems to be UNIX related.
Here is an example if this is any use thanks.
"#!/bin/sh
sleep 30
/fnsw/bin/killfnsw -DAy
touch /tmp/alantag
sleep 60
/fnsw/bin/initfnsw -y stop
sleep 200
/fnsw/bin/killfnsw -DAy
sleep 300
/fnsw/bin/initfnsw -y start"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2004 01:42 AM
тАО01-14-2004 01:42 AM
Re: Problem with scripts
What errors does the above script produce?
All I can imagine is command not found, or permission denied, or some application level error. Maybe it's looking for an
environment variable which is not being exported to the script>
Do you run it as the same user from a script as you do when running manually?
It would be helpful if you could post sample session output.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2004 02:28 AM
тАО01-14-2004 02:28 AM
SolutionOnething you could do is to source in your .profile at the beginning of the script. This will fix in case if these commands are looking at any environmental settings.
. $HOME/.profile
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 11:08 PM
тАО01-21-2004 11:08 PM
Re: Problem with scripts
The .profile entry sorted out the problem. :)