tag:blogger.com,1999:blog-680460552989626798.post1205602446409389394..comments2023-10-21T18:50:50.011+03:00Comments on KotbCorp: Shutdown after Update in ubuntuAhmed Kotbhttp://www.blogger.com/profile/15108338360177948211noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-680460552989626798.post-13941764442955388562017-10-23T20:23:40.840+02:002017-10-23T20:23:40.840+02:00thanks...thanks...thiyagihttps://www.blogger.com/profile/03179217375059773545noreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-75396095390892471942011-03-02T17:30:44.053+02:002011-03-02T17:30:44.053+02:00@Anonymous
glad that you have liked the script , ...@Anonymous<br /><br />glad that you have liked the script , and you are right the last line should be out of the while block , an extra space was added by mistake , i will fix itAhmed Kotbhttps://www.blogger.com/profile/15108338360177948211noreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-58383935806459641242011-03-02T16:59:41.030+02:002011-03-02T16:59:41.030+02:00I runned the script and it tried to shutdown the c...I runned the script and it tried to shutdown the computer before the update was complete...<br />I think<br />"os.popen("sudo -S shutdown -h 5", 'w').write(password)"<br />should be outside "while(running):"<br /><br />btw, nice script :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-11963861278743974282010-12-03T00:23:01.051+02:002010-12-03T00:23:01.051+02:00# apt-get -y --fix-broken update ; apt-get dist-up...# apt-get -y --fix-broken update ; apt-get dist-upgrade ; poweroff<br />مش عارف إيه اللي فكرني بالبوست ده<br />:)aboelnourhttps://www.blogger.com/profile/07649964604442190804noreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-53827034657951306972009-10-15T23:19:11.703+02:002009-10-15T23:19:11.703+02:00Hi,
Just a small correction
The last line inden...Hi,<br /><br />Just a small correction <br /><br />The last line indentation should be along the while statement .....<br /><br />Thanks for the script though !<br /><br />link:http://surajitray.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-28810995636126054912009-06-18T02:58:02.987+03:002009-06-18T02:58:02.987+03:00answers :D
----------
1- sure u can use any langua...answers :D<br />----------<br />1- sure u can use any language but python is the easiest i think...<br /><br />2-sure but offcourse you will have to change things in the script...Ahmed Kotbhttps://www.blogger.com/profile/15108338360177948211noreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-31975288982417671632009-06-18T02:51:21.550+03:002009-06-18T02:51:21.550+03:00salam 3alikom
nice idea
but 2 questions:
1)as py...salam 3alikom <br />nice idea<br />but 2 questions:<br />1)as python is a dynamic oop language<br />can i use any language?<br />2)can i use the same idea for other OS?<br />-------------<br />"Expected" ans:P<br />1)no<br />1)noaboelnourhttps://www.blogger.com/profile/07649964604442190804noreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-48636491736267253042009-06-14T19:37:45.537+03:002009-06-14T19:37:45.537+03:00there are three reasons why i have choosen python:...there are three reasons why i have choosen python:<br />-fun and easy<br />-learning something new<br />-installed by default in many linux distrosAhmed Kotbhttps://www.blogger.com/profile/15108338360177948211noreply@blogger.comtag:blogger.com,1999:blog-680460552989626798.post-86195913720703994292009-06-14T19:12:36.641+03:002009-06-14T19:12:36.641+03:00well , this is nice :)
is there a reason you chos...well , this is nice :)<br /><br />is there a reason you chose python or you just wanted to write in python ?<br /><br />Thanks for sharing this :)Amhttps://www.blogger.com/profile/14230348971076823868noreply@blogger.com