Quantcast
Channel: Will python scripts be run when added to /etc/network/if-up.d? - Ask Ubuntu
Browsing all 3 articles
Browse latest View live

Answer by tumbleweed for Will python scripts be run when added to...

Yes, it should.Does it have a dot in its filename? run-parts (8) ignores files with dots in their name.

View Article



Answer by John S Gruber for Will python scripts be run when added to...

In order to answer your question I created the following in /etc/network/if-up.d/python: #!/usr/bin/python f = open('/tmp/aaaaa','w') f.write('') f.close()Then I executed: chmod +x...

View Article

Will python scripts be run when added to /etc/network/if-up.d?

To get my system connected to internet, I have to manually login via the web page of my ISP. This is not very convenient. I found a python script online which automates this. it takes the...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images