> >I have a backup that I want to run daily, that goes 
> something like this
> >
> >$ tar cvzf /mnt/win_d/docs/e-mail/evolution/evol.tar.gz
> >/home/chuck/evolution
> >
> >
> >I would like to save this in a file that I can run as a 
> command, like a
> >BAT file in DOS. I assume then, that I would save this 
> script in a text
> >file. Then, what else should I do, in terms of naming, or other
> >preparation, to have it available as a command?
> 
> You can name the file anything you want. Linux supported long 
> names long
> before Windows/Dos did. Then you can run 
> 
> chmod +x <filename>
> 
> to make it executable (set the execute attribute). After that 
> you can run it
> as./<filename>
> 
> ./ means "in this directory"
> 
> Paul
> 

Speaking as a newbie... I thought scripts had to end with a ".sh"? Or is
that just a convention?
Also, when I want to run a script I've written myself, I just change to the
directory the script is kept in, and type the script name. I don't prefix it
with a "./"
Am I missing something here?

Thanks,

Richard

***********************************************************************
This e-mail and its attachments are intended for the above named 
recipient(s) only and are confidential and may be privileged.
If they have come to you in error you must take no action based 
on them, nor must you copy or disclose them or any part of 
their contents to any person or organisation; please notify the 
sender immediately and delete this e-mail and its attachments from 
your computer system.

Please note that Internet communications are not necessarily secure 
and may be changed, intercepted or corrupted. We advise that 
you understand and observe this lack of security when e-mailing us 
and we will not accept any liability for any such changes, 
interceptions or corruptions. 

Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping 
with good computing practice the recipient should ensure they 
are actually virus free.

Copyright in this e-mail and attachments created by us belongs 
to Littlewoods. 

Littlewoods takes steps to prohibit the transmission of offensive, 
obscene or discriminatory material.  If this message contains 
inappropriate material please forward the e-mail intact to 
[EMAIL PROTECTED] and it will be investigated. 
Statements and opinions contained in this e-mail may not 
necessarily represent those of Littlewoods.

Please note that e-mail communication may be monitored.

Registered office: 
Littlewoods Retail Limited, 
Sir John Moores Building, 
100 Old Hall Street, 
Liverpool,
L70 1AB 
Registered no: 421258 

http://www.littlewoods.com 
***********************************************************************

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to