Results 1 to 4 of 4
I want to make some sort of file to automate several processes into one instruction for some1 to type
Is there a way to do this, and can i see ...
- 03-16-2005 #1Linux Newbie
- Join Date
- Feb 2004
- Location
- UK
- Posts
- 131
Automatic script
I want to make some sort of file to automate several processes into one instruction for some1 to type
Is there a way to do this, and can i see a very small and simple example of what it should look like
Thanks
- 03-16-2005 #2
You could create a BASh script which executes a bunch of commands, and then put this file in /bin so everyone can execute it, or if for specific people, put it in their /home/username/bin.
- 03-16-2005 #3Linux Newbie
- Join Date
- Feb 2004
- Location
- UK
- Posts
- 131
would i just list the instructions out as i would type them into the bash shell??
- 03-16-2005 #4
Open up a text editor of your choice, and then:
Write these commands as you would in bash, e.g. to mount two drives it could be:#!/bin/bash
command one
command twothen make the file execuatable with#!/bin/bash
mount /dev/hda2 /mnt/happy
mount /dev/sda6 /mnt/unhappyand you should be able to add that to your /bin file, you might have to specify the PATH if you want to put it in a perticular place that is not /bin.Code:chmod +x filename
For more infod check out www.linuxcommand.org and http://www.linuxcommand.org/wss0010.php
I hope this helps;
dylunio


Reply With Quote
