+ 1

Need to know this :::----

i am learning python now as a starter but all i want to know that can i create scripts with this language and if i can how. ..... cause im a server admin ,just got this position. and now I'm managing Ubuntu virtual servers so i need the knowledge of UNIX/linux scripting any suggestions would be great

2nd Jun 2018, 2:01 PM
Robert Rajendra
Robert Rajendra - avatar
4 Respostas
0
yes you can create scripts. just save your code in a .py file
2nd Jun 2018, 2:40 PM
Max
Max - avatar
0
OK thanks for help Max but one more thing do I need to write #! /bash/shell/py. in the beginning
2nd Jun 2018, 2:43 PM
Robert Rajendra
Robert Rajendra - avatar
0
python (or Perl) are great for Linux scripting (easier to manage than bash!) The shebang line is not mandatory, and platform dependant. maybe useful if you want to run the script directly as executable on linux (rather than: $python yourscript.py ) and helps identifying the file as python script.
2nd Jun 2018, 4:02 PM
ifl
ifl - avatar