Solved

owner rights to run `dip -k` from a Perl script

Posted on 1997-01-10
1
378 Views
Last Modified: 2010-03-17
Trying to execute a 'dip -k' within a perl script I am getting no response == no I/O no failure no nuthin' ==

I have tried  system("dip -k");
and exec("dip -k")  and using backquotes instead, both in system() and exec() and just as naked lines in the script.

I have tried killing the ppp0 directly but dip seems to keep the hardware locked if I do that... Messy to have a script calling reboot, so ... I want to get dip -k to do the shutdown.

Also, this is an ISDN port so dip owns 2 ppp# processes.

Rapid replies appreciated, as this box is aworking gateway and needs to be reliable SOON!   8^o

riko
0
Comment
Question by:riko
1 Comment
 
LVL 1

Accepted Solution

by:
mstonge earned 100 total points
Comment Utility
Perl treats exec arguments as an array so you have to separate them.  Actually if exec sometime can detect some common characters and pass them properly but it's always safer to call exec or system like this:

exec 'dip','-k'

Hope it helps
Marc
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now