LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2004, 02:33 AM   #1
sanjith11
Member
 
Registered: Oct 2003
Distribution: redhat
Posts: 63

Rep: Reputation: 15
shell script not working


hello,
i am able to switch user by issueing the command "sys -lu user"
But when i do this inside a shell script the commands after this statement
dosent gets executed. is there any work around for resolving this problem
so that i can execute the commands as the new user.

OS: HP-UX

reg
SaN
 
Old 07-07-2004, 02:43 AM   #2
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
Does it help if you use the full pathname to the command.
 
Old 07-07-2004, 02:55 AM   #3
sanjith11
Member
 
Registered: Oct 2003
Distribution: redhat
Posts: 63

Original Poster
Rep: Reputation: 15
that dosent work .

it dosent have sufficient permissions for that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cgi shell script: ssh not working kitmui Programming 2 04-21-2010 02:46 PM
Commands from shell script not working Grassie Coetzee Linux - Software 2 03-13-2005 02:31 PM
Escape character not working in shell script philipz Programming 1 04-29-2004 09:58 AM
running root-tail from shell script not working Nuk Linux - Newbie 1 04-09-2004 08:56 AM
why my shell script is not working linuxlah Linux - General 4 08-01-2002 08:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration