Hi Gustin :) thank you too.
Gustin Johnson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Ralf Mardorf wrote: > >> Hi :) >> >> some users on that list seems to be fine with writing shell scripts. I'm >> still not fine with it and endeavour to avoid non-POSIX style while >> learning how to write those scripts. >> >> > You may wish to have a look at the following: > > http://tldp.org/LDP/Bash-Beginners-Guide/html/ > The problem with all those online guides is e.g. this: http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_10_02.html Array variables are fine for e.g. c like shells and even for pseudo Bourne shells, e.g. on Suse or Debian, but not for real POSIX, e.g. /bin/sh on Ubuntu, anyway I'll take a look at those guides too. > and > http://tldp.org/LDP/abs/html/ > Seems to be a good overview, if I e.g. like to know all internal variables and other stuff. > <snip> > >> Hints how to use "grep" are welcome, e.g. if a PID has got 5 instead of >> 4 numbers, the script will display absurd messages. >> >> > You need to learn about regular expressions. The previous guides that I > mentioned touch on regular expressions, but you will probably want to go > a little deeper. > > Also, it should be noted that regular expressions are used in .Net as > well as a lot of other places, as such they are not limited to the *Nixs. > > >> I'm a little bit confused about the separation between user and root on >> the Ubuntu based 64 Studio. Does anybody know how I can launch an >> application as user by my shell script, even if the script was started >> as root? >> > > su <username> commands. > spinymouse-s...@64studio:~$ sudo -i r...@64studio:~# su spinymouse-sudo firefox www.google.de Yes, it works :). Cheers, Ralf _______________________________________________ 64studio-users mailing list [email protected] http://lists.64studio.com/mailman/listinfo/64studio-users
