The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem In Shell Script satyakide Shell Programming and Scripting 11 09-24-2007 07:00 AM
Help! Problem with Shell Script. pektl Shell Programming and Scripting 7 05-29-2006 02:08 AM
Shell Script problem bnohifi Shell Programming and Scripting 1 07-06-2005 11:02 PM
Problem with shell script zylwyz Shell Programming and Scripting 2 06-29-2005 10:01 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2006
Registered User
 

Join Date: Jan 2006
Posts: 4
Problem with SU or SSH in shell script

Hi Floks!
This is Sravan!
I am new to linux and I am trying to write bash shell script in which I want to change the user but the statements which are after the "su " command are not working that I mean I want to execute some statements as the changed user


here is the code


ls
su <<username>>
ls

this code is executing but I am unable to execute the nxt cmd to su


please some one help me as I am running out of time



Thanks In Advance
Sravan Reddy
India
Forum Sponsor
  #2 (permalink)  
Old 01-24-2006
Registered User
 

Join Date: Jan 2006
Posts: 8
HI ,
Please add the following line to u r code as.There shld be -- followed by su
su -- <<username>>
  #3 (permalink)  
Old 01-24-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
Please read our rules which state:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

I will close this duplicate thread.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0