Results 1 to 3 of 3
Hi Forum,
I am pretty new to unix script and this is my first post!. I have a requirement to execute a series of cli commands and to show the ...
- 02-18-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 2
how to execute clia commands at CLI prompt through script?
Hi Forum,
I am pretty new to unix script and this is my first post!. I have a requirement to execute a series of cli commands and to show the outputs. The problem is with the below script I could able to log in to cli prompt and bring CLI prompt but after that cli commands have just get printed at the cli prompt for e.g. board 2, it never gets executed and terminates the script.
Any help is highly appreciated.
FYI : I am unable to post the script as getting You are only allowed to post URLs to other sites after you have made 15 posts or more. error.
I need help for throwing some commands at a prompt like ftp prompt through script.Last edited by lifeline2; 02-18-2011 at 04:34 AM. Reason: No icon
- 02-18-2011 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,096
Hello and welcome to the forums!
You can check this thread for a temporary workaround for the 15-post error message:
http://www.linuxforums.org/forum/fee...ng-forums.htmloz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 02-18-2011 #3Just Joined!
- Join Date
- Feb 2011
- Posts
- 2
Thanks OZ for a so quick reply

My script is having "at the rate symbol" so replacing it with A only.
And my output is :Code:#!/bin/sh clear login1() { echo "connecting to $1 Shelf Manager..." echo clia | ssh rootA$1 **echo board 2** sleep 2 } echo clia | ssh rootA$1 echo board 2 declare -a SHMs=`ping 192.168.0.0 -b -c 2 | grep '(DUP!)' | awk '{print $4}' | sed s/":"/""/g` >> /dev/null login1 ${SHMs[0]}
Pseudo-terminal will not be allocated because stdin is not a terminal. ssh: : Name or service not known board 2 WARNING: pinging broadcast address connecting to 192.168.0.2 Shelf Manager... Pseudo-terminal will not be allocated because stdin is not a terminal. /usr/X11R6/bin/xauth: not found stty: standard input Pigeon Point Shelf Manager Command Line Interpreter CLI> : Invalid argument board 2


Reply With Quote
