Bash Scripts-HowTo

marcus lists at
Sat Sep 9 21:24:20 UTC 2006

On Saturday 09 September 2006 15:56, Leonard Chatagnier wrote:
> Would appreciate the correct command and syntax

I think you want:

/bin/bash -c "sudo appname"

from the command line run a script with:

If the script has the "shebang" line at the top, then bash will use the 
correct interpreter, and you can just run ./myscript e.g.


or for Perl scripts:


Personally I like to use extensions like .sh or .pl so I know what kind 
of script it is, but you don't need to.


More information about the kubuntu-users mailing list