You can use vi or kedit to write the file.
Here is an example of a batch file:
#!/bin/sh /* This line must be included always */
cd /home/jcc/setiathome-3.03/* A go to a directory and run an file */
./setiathome -nice 19 /* Current directory is not in PATH, you must
*/
/* specificate it with ./ before the
filename */
/* The means it run in background */
ps -e | grep setiathome /* Another commands */
cat state.sah | grep prog=
You must make it executable with:
chmod +x filename
I hope this help you.
On Sat 14 Jul 2001 05:22, you wrote:
Hi there,
I was wondering if someone could help me write the equivalent of a batch
file for Linux. This is what I need it to do:
1. Open up a Konsole (preferably minimized) and change to the following
folder:
(/usr/local/bin/Half-Life/hlds_l/), then run the command: startup and
keep the Konsole running
2. Open up another new Konsole (preferably minimized as well) and
change to the following folder (/usr/local/bin/Half-Life/hlds_l/PB/)
then run the command: pb also keep the Konsole running after running
the program
I'd like to have this so that I can double click on the batch file and
have it run, or if I have to run it through Konsole, I'd like as an
additional step to have the Konsole that I used to run the batch file
to close after issuing the two commands if possible.
TIA
Curtis
_ Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
--
Juan Carlos Conde e-mail: [EMAIL PROTECTED]
Valladolid (Spain)Running Linux Mandrake 8.0
Linux Registered User: 219425 - http://counter.li.org/
__
mensaje enviado desde http://www.iespana.es
emails (pop)-paginas web (espacio illimitado)-agenda-favoris (bookmarks)-foros