?
Solved

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

Posted on 1997-01-10
1
Medium Priority
?
425 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 200 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

801 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