Writing a wrapper


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Writing a wrapper
# 1  
Old 11-19-2008
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  
Old 11-19-2008
It might be a bug or a design issue in your wrapper.

It's hard to tell without any code of yours.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need wrapper around mysql query

Hello Friends, I am using check_mysql_query plugin in nagios to query database and get output. query is working fine but output which i am getting contain query. I want to remove query from output and give custom message which will be simple and understandable. Can you help me here with any... (5 Replies)
Discussion started by: ghpradeep
5 Replies

2. IP Networking

Wrapper functions like SuSEFirewall2

Hey everyone, I have a question. I'm administering a linux machine that runs openSuSE. A few of the functions that I'd normally do manually, have programs that take over the task. For example, I wanted to add a few rules to my iptables. I then found out that there is an openSuse tool... (3 Replies)
Discussion started by: Lost in Cyberia
3 Replies

3. UNIX for Advanced & Expert Users

Update file from a given wrapper

Hello Friends, I am trying to generate a status file which will be updated when users run a given shell wrapper. Above is pretty straight forward. Since the program is open to all users, the status file should have open access for all. That has the inherent loop hole of anybody modifying... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies

4. UNIX for Dummies Questions & Answers

Linux printer wrapper

Have an HP 1000 j110a on Slackware 13.0. Is there a wrapper I could use with or without CUPS to allow me to print to this device? I am aware of HPLIP and HPIJS both of which are included in 13.37 release I will be ordering but need something until it is delivered. (0 Replies)
Discussion started by: slak0
0 Replies

5. UNIX for Dummies Questions & Answers

What is a wrapper?

Hi, I am a dummy and hear to the computation guys telling me, "Oh! that is easy, you just write a wrapper to do all that bunch of stuff!" :cool: Could someone tell me what is a wrapper? :rolleyes: The only one I know is Cling-Wrap for sandwiches. A small elegant example would be very... (1 Reply)
Discussion started by: genehunter
1 Replies

6. Shell Programming and Scripting

Count script wrapper help

I have this a code that I got help with for another task. I since tried to modify it to work on this task. I need someones expertise to modify it slightly and I am not sure where to start or yet fully understand the logic. I am trying to get a script to read my m-names.txt which has lots... (19 Replies)
Discussion started by: richsark
19 Replies

7. UNIX for Dummies Questions & Answers

SSH/SSL wrapper

My IRC client does not support SSL, so I was wondering if there was any other way to encrypt the information between SSL clients on an IRC network, maybe by using SSH to enter the IRC program or something (it's a command-line program) and passing all the plain-text through SSH first. I tried... (0 Replies)
Discussion started by: guitarscn
0 Replies

8. Shell Programming and Scripting

Help with a wrapper script not working

Hello, I have the below wrapper script: #!/usr/bin/perl -w if ($^O eq 'MSWin32' ) { $subnet = 'c:\path\to\subnet.txt'; } else { $subnet = '/opt/qip/wrapper-del-sub'; } open FH1, 'jj-deleted-subnets.txt' or die "Can't open 'jj-deleted-subnets.txt' ... (0 Replies)
Discussion started by: richsark
0 Replies

9. UNIX for Dummies Questions & Answers

What is a wrapper script

I tried searching the forum ,,but couldn't locate ..Can anyone give me a link or some information about wrapper script. (1 Reply)
Discussion started by: thana
1 Replies

10. UNIX for Advanced & Expert Users

Tcp wrapper

I installed tcp wrappers version 7.6 and modify my inetd.conf file from ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd to ftp stream tcp6 nowait root /usr/local/bin/tcpd /usr/sbin/in.ftpd -l created /etc/hosts.allow file and modify it... (19 Replies)
Discussion started by: hassan2
19 Replies
Login or Register to Ask a Question