The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
SMPlayer: A high quality wrapper iBot UNIX and Linux RSS News 0 09-11-2008 03:40 PM
What is a wrapper script thana UNIX for Dummies Questions & Answers 1 01-28-2008 08:11 AM
wrapper for Common Tools cantgetname Shell Programming and Scripting 2 02-22-2007 11:25 PM
What is wrapper script and how to write chiru UNIX for Dummies Questions & Answers 1 06-12-2006 06:23 AM
Tcp wrapper hassan2 UNIX for Advanced & Expert Users 19 08-07-2002 04:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-19-2008
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
Writing a wrapper

Hi everyone,

I have this custom sudo package over which I want to write a wrapper using PERL. The wrapper will do some pre-work and then call the regular sudo package from within itself. But I am facing a peculiar problem here.

Once invoked, I am able to do the pre-work from within the wrapper but after that I invoke the regular sudo which is supposed to prompt for a password and then change into a new shell for the sudo'ed user. But when I invoke sudo from within the wrapper, a password is prompted but changing of a shell will not take effect. How can I overcome this?

Regards,
garric
  #2 (permalink)  
Old 11-19-2008
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,422
It might be a bug or a design issue in your wrapper.

It's hard to tell without any code of yours.
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 04:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0