Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Script

Reply
Thread Tools

Script

 
 
zze-Support activite PCL RAMSI A ext DvSI/SIReS/LAN
Guest
Posts: n/a
 
      08-04-2003
Hello everybody,

I try to execute an ifconfig command in my python code using:
stat, wdsout = commands.getstatusoutput("./script.sh " + interface + " "
+ ipadrr)

The script.sh executes the ifconfig command as:
Ifconfig $1 plumb && ifconfig $1 $2 netmawk 255.255.255.0 up

this script is created by the root, and have 4755 as chmod.

When the script is executed by th root, it works normaly but when it's
launched from the python file it doesn't work:
and i have a Permission denied message.

Is something wrong in what I do?

Thanks in advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a script from another script and other script does notdo busy wait. Rajat Python 3 01-08-2010 02:05 PM
RE: How to execute a script from another script and other script doesnotdo busy wait. VYAS ASHISH M-NTB837 Python 2 01-07-2010 08:18 PM
<script>alert();</script> =?Utf-8?B?PHNjcmlwdD5hbGVydCgpOzwvc2NyaXB0Pg==?= alert Microsoft Certification 0 04-13-2004 06:36 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM
How to make Perl Script "POST" call from another Perl Script??? Wet Basement Perl 1 07-15-2003 10:25 PM



Advertisments