Shellscript not executing further after sudo over a user | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Shellscript not executing further after sudo over a user

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-28-2013
adityam adityam is offline
Registered User
 
Join Date: Nov 2007
Last Activity: 14 August 2013, 12:54 AM EDT
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Shellscript not executing further after sudo over a user

Hi,

I am writing a switch case statement and one of the option contains sudo to a particular user and then perform some steps after that but my script is unable to proceed with further execution after doing sudo over the user. Could you please suggest an workaround for this.
Sponsored Links
    #2  
Old 02-28-2013
Vikram_Tanwar12 Vikram_Tanwar12 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 21 November 2013, 3:32 AM EST
Posts: 168
Thanks: 13
Thanked 10 Times in 10 Posts
Please post the script so that we can get some more idea.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudo su - USER ??? How to?? 300zxmuro UNIX for Dummies Questions & Answers 2 06-18-2011 03:48 PM
sudo user blackeyed UNIX for Dummies Questions & Answers 3 10-09-2010 07:03 AM
how to write a shellscript to send a mail alert to the website user based on license expiration time deepu_Shscripts Shell Programming and Scripting 0 09-03-2010 02:55 AM
Run sudo to another user Mr.AIX AIX 11 06-06-2010 01:11 PM
Shellscript to Sudo other account sachin.tendulka Shell Programming and Scripting 21 11-30-2007 12:22 AM



All times are GMT -4. The time now is 08:14 AM.