Solved

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

Posted on 1997-01-10
1
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
mstonge earned 100 total points
ID: 1584037
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 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