![]() |
|
#1
|
||||
|
||||
Re: A basic Bash ScriptI just posted a GID Community blog entitled: A basic Bash Script.
Quote:
Please let me know what you think. This is an auto-generated message posted by GIDNetwork™ on behalf of the author. |
|
#2
|
||||
|
||||
Re: A basic Bash ScriptI too have a great respect and fascination with bash scripts. They can be extremely simple (similar to a DOS batch file), but they can be extremely complex with functions, control loops, etc.
I usually place my bash scripts into /usr/local/bin which is part of the search path, but does not have any of the system executables placed there. Good stuff J. __________________
The best damn Sports Blog period. |
|
#3
|
|||
|
|||
Re: A basic Bash ScriptI too wrote 5 shell scripts and attempted to make them executable. They are in /usr/bin and i can go to / and call them by name, except for 1. they are:
backup - works fine calling from / restore - works fine calling from / clspool - works fine calling from / idrestore - works fine caling from / But idbackup will not call from / . I have to call it s follows: /bin/ash /usr/bin/idbackup. I cant figure why 4 will work and 1 will not |
|
#4
|
||||
|
||||
Re: A basic Bash ScriptQuote:
Interesting.... Are they all constructed in a similar manner? Have you set the proper ownership/group info? Just curious can you call it by just typing /usr/bin/idbackup? If not, I have to suspect that something is telling the kernel that it is not an executable file. __________________
The best damn Sports Blog period. |
|
#5
|
|||
|
|||
Re: A basic Bash ScriptQuote:
did you have #!/bin/bash in your first line of your idbackup script? |
Recent GIDBlog
Review: Gel laptop cooling pad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: My first BASH Script. | admin | Computer Software Forum - Linux | 0 | 17-Dec-2005 07:29 |
| [ANN] New script engine: Open Basic (Basic syntax) | MKTMK | Computer Programming Advertisements & Offers | 0 | 01-Sep-2005 06:13 |
| NOT sure what is wrong with script fscanf | jenmaz | C Programming Language | 14 | 29-Oct-2004 14:53 |
| Two virtual hosts, cgi script behaves differently on each | blimbo | Apache Web Server Forum | 0 | 04-Aug-2004 09:35 |
| JavaScript Tutorial Part 1 | pcxgamer | Web Design Forum | 2 | 01-Dec-2003 09:16 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The