10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need help in creating a array in shell scirpt.
I have a file which has following details.
hostname devices
device1
device 2
de
abcdmhs10 1234
2343
2353
3343
3435
2343
bcdfmhs11 2343
2443
3434
8874
0343
3434 (5 Replies)
Discussion started by: jpkumar10
5 Replies
2. Shell Programming and Scripting
echo -e "Enter in a username : \c"
read username
grep "^$username:" /etc/passwdWhat I'm trying to do is take in a username from my script and I need to be able to check if that username already exists. If it does the script should display a message saying that the user already exists and exit.
... (2 Replies)
Discussion started by: shadowcat
2 Replies
3. Shell Programming and Scripting
I actually posted this problem on a different forum, but figured this would be a more appropriate place to post it.
OK so I've created my own shell, but I can't get the background process function to run properly! What I want to do is to run a process in the background, and also print when the... (2 Replies)
Discussion started by: hansel13
2 Replies
4. Shell Programming and Scripting
Hi all. Suppose I have the following function in an executable file named "HOLA":
------------------------
function hola { echo "Hola ${@}."; }
------------------------
In addition, suppose that I want to execute the file so I can input my name next to ./HOLA. I mean,... (4 Replies)
Discussion started by: hresquivelo
4 Replies
5. Shell Programming and Scripting
hi all,
i'm trying to create a shell script that browse files in a directory and generates another shell script based on these files.
for ex:
/tmp/files/ is the directory i want to browse and it has 2 files file1.sh and file2.sh.
now my shell script should browse /tmp/files/ and... (6 Replies)
Discussion started by: adshocker
6 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Great to find this forum!
I'm a complete newbie to unix, and am having a hard time finding my way around.
Firstly, I've been reading something about c shell programming being one tenth the size of c programming done on unix.....I couldn't figure what that meant, but there were two... (7 Replies)
Discussion started by: sdsd
7 Replies
7. Shell Programming and Scripting
I have a shell script that I am running every 60 seconds, but it is creating this process to the point that it is causing the server to perfrom poorly. Below is my script, what can I change to prevent this?
while true
do
java -classpath .....( all my classes here)
>/dev/null 2>&1
... (3 Replies)
Discussion started by: Miller_K
3 Replies
8. UNIX for Advanced & Expert Users
Hi, i'm newbie in Unix.
How can i create my own database in unix shell?
Not to create a database through shell to MySql, oracle etc, but to create a completely mine database system through shell.
Please help me, give me directions, i'm desperate :( (1 Reply)
Discussion started by: vants
1 Replies
9. Shell Programming and Scripting
I have an assignment in my programming class to write a shell script that will use command line parameters, display the # of parameters, display all parameters on the command line and display the parameters $0-$9. I understand some of the code (I will be using 'n' to represent the count through... (1 Reply)
Discussion started by: plmahan
1 Replies
10. Shell Programming and Scripting
Can some one smart here help I need to create a shell script that does this below using vi editor.
decrypts a file (specified as an argument to the script) containing text which was encrypted using the ROT-13 algorithm. The decrypted text should be written to a new file leaving the input file... (1 Reply)
Discussion started by: master_6ez
1 Replies