Script

  • Thread starter zze-Support activite PCL RAMSI A ext DvSI/SIReS/LA
  • Start date
Z

zze-Support activite PCL RAMSI A ext DvSI/SIReS/LA

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top