Search Results

Search: Posts Made By: hawkfro12
1,866
Posted By maverick72
You could do something like this: while...
You could do something like this:


while read f; do
echo "something, pls check" | gammu --sendsms TEXT $f
done <tel.txt
1,340
Posted By cero
Hi, your script defines some functions but...
Hi,
your script defines some functions but never uses them. When you process the userinput you call some commands directly that you use in the functions .
About your problem: command line...
1,340
Posted By sea
You could try this: #!/bin/sh # # Vars &...
You could try this:
#!/bin/sh
#
# Vars & Functions
#
MENU="memory space ip user"
memory () {
free -m
}

space () {
df -h
}


ip () {
arp
}
1,340
Posted By cfajohnson
If you want to get a value from the command line,...
If you want to get a value from the command line, use the positional parameters, $1, etc., not 'read'.


case $1 in
1|memory) echo " you've selected check memory..1 sec pls "
...
1,178
Posted By clx
I suggest, first indent your code, you would...
I suggest, first indent your code, you would probably know the error by own. We would also need to do that as the very first task.

---------- Post updated at 20:23 ---------- Previous update was...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 12:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy