lyang0@lyang0-OptiPlex-755:/tmp$ ./fg.sh
...............................
ssh to the guest .....
...............................
./fg.sh: 18: :ls: not found
Code:
lyang0@lyang0-OptiPlex-755:/tmp$ cat fg.sh
#!/bin/sh
DEFAULT_CMD="ls /boot/"
ssh_to_guest()
{
echo "..............................."
echo "ssh to the guest ....."
echo "..............................."
CMD="$1"
:${CMD:=$DEFAULT_CMD}
if ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@128.224.165.205 "${CMD}";then
echo "pass"
else
echo "fail"
fi
}
ssh_to_guest
Hi could see all the post with this old color scheme ( legacy (dark) vBulletin color scheme (unsupported)) except this post, please look at the screenshot . Looks like url parsing also some problem is there getting "Page not found" error.
--
Akshay
--edit--
screenshot is there in album... (18 Replies)
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
I am making a shell script that will have "shortcuts" to do different tasks and I can't get what I'm doing wrong (this is just a test script)
read cake
if then
echo "1 it is"
fiit outputs:
1:
: bad variable namecake
test.sh: 27: test.sh: Syntax error: end of file unexpected (expecting... (22 Replies)