Bash Scripts-HowTo
marcus
lists at wordit.com
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:
sh myscript.sh
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.
#!/bin/bash
.....
or for Perl scripts:
#!/usr/bin/perl
.....
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.
Marcus
More information about the kubuntu-users
mailing list