[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Scripting

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!

 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...
Version: GnuPG v1.2.5 (GNU/Linux)


Reply to: