Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 16-05-2010, 03:14 PM   #1 (permalink)
Wise Old Owl
 
speedyguy's Avatar
 
Join Date: Aug 2004
Location: Bangalore/Jamshedpur
Posts: 1,173
Default Unix Shell Script: su command help


i did found some help by googling but m still unanswered...

my aim is to create a login screen for a user/super user..... but using a shell script if i give su command or any login command a child process is created n m sent 2 its terminal....the program exec is at hault unless i exit that shell....

i want to continue my program exexution aftr the login for further operations in my project.... can any1 help me out?

Thanks.

Enjoy~!
__________________
No Pain...No Gain
speedyguy is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-05-2010, 08:58 PM   #2 (permalink)
change is constant!!
 
khmadhu's Avatar
 
Join Date: Jan 2010
Location: Bengaluru
Posts: 445
Default Re: Unix Shell Script: su command help

try with sudo command. this will execute the command at super user terminal and comes back to user terminal.. u need to add users in sudoers file /etc/sudoers, meanwhile u can also try by putting the the job background. using '&' at the end of each command.
__________________
If you really wanna think, try to think from Atom to Universe!!

cpu: core i5 2500k, mobo: DP67BG, RAM:Corsair 8GB(4x2) 1600 Mhz, XFX HD 5770, 1TB seagate 6Gbps 7200 rpm , SAGA II 500W

Last edited by khmadhu; 16-05-2010 at 09:03 PM.
khmadhu is offline  
Old 19-05-2010, 10:59 AM   #3 (permalink)
In The Zone
 
parthbarot's Avatar
 
Join Date: Sep 2004
Location: .::OnLine::.
Posts: 388
Default Re: Unix Shell Script: su command help

And also you need to get the exit status from command. So that you can show proper message for what happened in login
__________________
www.techlads.com

Paarth.
parthbarot is offline  
Old 22-05-2010, 11:12 PM   #4 (permalink)
Wise Old Owl
 
speedyguy's Avatar
 
Join Date: Aug 2004
Location: Bangalore/Jamshedpur
Posts: 1,173
Default Re: Unix Shell Script: su command help

will have 2 learn abt sudo....ya meanwhile i can try out that background process....i doubt it wud work but will update here...thanks

Enjoy~!
__________________
No Pain...No Gain
speedyguy is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a Forum pritish_kul2 Tutorials 7 07-03-2007 01:43 PM
Extensions and Their Definitions Sparsh007 QnA (read only) 3 28-11-2006 07:25 PM
Alias Does Not Work In Shell Script mannahazarika Open Source 3 24-01-2006 05:48 PM
Valuable Sites for Techies sreedevi Tutorials 15 04-10-2005 10:35 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2