shell scripting using python egg

Posted under » Linux » Python on 21 October 2009

A shell script is similar to the windows batch file. It will execute commands listed on the text file.

Create a file, say ""

# Script to print user information who currently login , current date & time
echo "Hello $USER"
echo "Today is \ ";date
echo "Number of user login : \ " ; who | wc -l
echo "Calendar"
exit 0

In order to run, chmod the file to make it executable. Execute it by typing the file name out with its location (relative or full) or type sh in front.

$ chmod 755
$ ./
$ /var/script/
$ sh

An advanced example.

Same with python eggs

$ sh whutever.egg

To run python script

$ python

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS