-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Nov 06, 2004 at 11:46:04PM +0100, Silvan Villiger wrote: > Hi, > > I've started to learn scripting in linux. But I have some troubles > understandig the redirection of the streams. I tried to test whether > a directory already exists using the ls command (didn't find a > bether solution) and whenever ls doesn't find such a directory it > writes an error to the error-stream (I think) which still occurs on > the shell calling the script if I pipe the output of ls in the > script to another program. > > Another example I had, was when I tried to compile a latex-file in a > script. How can i prevent it from writing compiling-informations to > the shell which started the script? > > I'm sorry if this are newbie-questions, but... I am a newbie :-). > And I really have red a lot of guides, but there are so many > informations out there... > > Greetings... Silvan >
Hi Silvan, try reading this: man test - -- counter.li.org #238656 -- goto counter.li.org and be counted! (__) (oo) /------\/ / | || * /\---/\ ~~ ~~ ...."Have you mooed today?"... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBjVyGAWAAuqdWA9cRAk9WAJ9rl7SkTI/y9l5fpvO7Fir8VWckzgCfUK2Y nNELbV9HNmfgFE5HDoefrpM= =/JLq -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]