Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
linux bash shell script
Name: osaru Date: March 12, 2004 at 03:38:37 Pacific OS: SUSE CPU/Ram: 1G
Comment:
I find bash shell script runs on unix does not run on linux(SUSE). For example even the following simplest one gives me an error on SUSE,but unix. Is this something wrong with bash on SUSE? or linux shell script and unix shell script are different? #! /bin/bash echo -n "Give me a directory name :" set ans = $< echo $ans
Name: Dlonra Date: March 12, 2004 at 18:08:45 Pacific
Reply:
which "unix"? are you quite sure you are using the bash shell on "unix"?"
0
Response Number 2
Name: Ronald Date: March 13, 2004 at 19:14:11 Pacific
Reply:
I dont think bash is the default on unix. Most of the unix machines I have been on had the P shell or K shell as default. I believe if you type [echo $SHELL]Without the brackets it will return the shell you are in. You can change your default shell in unix if you have the correct permissions in your user profile. Another thought make sure you are using bash on SuSe. Good luck Ron
0
Response Number 3
Name: osaru Date: March 13, 2004 at 23:14:00 Pacific
Reply:
I use bash both on unix and suse. I just can't figure out what's causing the problem. eri
0
Response Number 4
Name: 3Dave Date: March 15, 2004 at 08:39:38 Pacific
Reply:
How about:
#!/bin/bash echo -n "Give me a directory name :" read ANS echo $ANS
Summary: i I need to write a bash shell script which will preprocess a .PDB file and pass the PDB file name to a c-program so that i can do stuff tothe file. If anyone has any ideas where ican start ...
Summary: I have a shell script INSTALL and I'd like to run it. I tried at prompt [root@livewire2 installers]# INSTALL and [root@livewire2 installers]# run INSTALL with error bash: command not found Am I missi...
Summary: Hi, I'm new to Linux. I was playing with the script below but it did not execute correctly. #! /bin/bash export /xxx/xxx cd / echo HELLO although i can see the HELLO printed on the screen, my current...