- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- MANPATH: Undefined variable.
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
08-02-2002 03:47 AM
08-02-2002 03:47 AM
MANPATH: Undefined variable.
as root user I try to start a script via cron.
In this script a command should be executed by another user. For this case it includes a "su"-command:
su - rvs -c "rm /home/rvs/arcdir/rlrudump.log"
This does not work. I get an error message:
MANPATH: Undefined variable.
If I use this scripts directly (without cron) everything works fine.
What to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2002 03:53 AM
08-02-2002 03:53 AM
Re: MANPATH: Undefined variable.
/usr/bin/su - rvs -c "rm /home/rvs/arcdir/rlrudump.log"
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2002 03:54 AM
08-02-2002 03:54 AM
Re: MANPATH: Undefined variable.
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2002 03:59 AM
08-02-2002 03:59 AM
Re: MANPATH: Undefined variable.
Try using su - rvs -c "/usr/bin/rm /home/rvs/arcdir/rlrudump.log"
But I agree with the lack of need to su - rvs. You should not need it.
Cheers!
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2002 04:16 AM
08-02-2002 04:16 AM
Re: MANPATH: Undefined variable.
export MANPATH=/usr/share/man
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2002 04:42 AM
08-02-2002 04:42 AM
Re: MANPATH: Undefined variable.
now the problem is fixed:
I changed the first line of my script from
#! /usr/bin/csh
to
#! /usr/bin/sh
Thanks for your help.