10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I know something simple is missing here, "log_user 1" is set . . . after this utility opens ${InFile} (handle? for IntInFile) it needs to look for something to appear in the file ${IntInFile} and then send it to the spawned process. Then I am locking the file ${IntInFile} and clearing it out -... (0 Replies)
Discussion started by: JuanMatteo
0 Replies
2. Shell Programming and Scripting
spawn fbat
expect ">>"
send "log fbatPW80_OR8sim1 \r"
expect ">>"
send "load map.map \r"
expect ">>"
send "load fbatPW80_OR8sim1.ped \r"
expect ">>"
send "fbat -v1 \r"
expect ">>"
send "log off \r"
expect ">>"
I need the above code to run in a loop such that script keeps doing a... (1 Reply)
Discussion started by: zoeli
1 Replies
3. Shell Programming and Scripting
set fid
set content
close $fid
## Split into records on newlines
set records
send "records splited\n"
send $records\n
set a "test\n"
send $a
foreach rec $records {
## Split into fields on colons
set fields
#set fields
puts $fields
for {set x 1} {$x < 4} {incr x} {... (1 Reply)
Discussion started by: rachanaPatel
1 Replies
4. Shell Programming and Scripting
#!/usr/bin/expect
spawn telnet 1.1.1.1
expect login*
send “admin\r”
expect Password*
send “abcdef123\r”
expect “Router#”
send “exit\r”
I want the above code to run in a loop such that script keeps doing a telnet to the device. Please suggest
Tarun (1 Reply)
Discussion started by: tkhanna82
1 Replies
5. Shell Programming and Scripting
Hello All,
I am trying to automate an installation process using expect and sh script. My problem is that during the installation process the expected value can change according to the situation.
For Example if this is a first time installation then at step 3 I'll get "Do you want to accept... (0 Replies)
Discussion started by: alokrm
0 Replies
6. Shell Programming and Scripting
Hello....
I'm developing a script; the first step is to create a file (its name is IP) which contains several lines. The second step is to create and execute expect programs using the data in the (IP) file.
Unfortunately, the loop is executed using the first line only not all the lines and... (0 Replies)
Discussion started by: Hossam_Nox
0 Replies
7. UNIX for Dummies Questions & Answers
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies
8. Solaris
Hi all,
I am trying to execute cgi scripts on solaris, but everytime i get a internal server error...
The syntax of my .cgi script is correct as ive checked..
Steps i followed
1.started apache
2.The UNIX and Linux Forums - Learn UNIX and Linux from Experts (in opera)
3.places my cgi scripts... (7 Replies)
Discussion started by: wrapster
7 Replies
9. Shell Programming and Scripting
H,
I am running the following log.sh shell script.
$no_of_ps=7
while
do
echo "hello $no_of_ps"
ps_file=`tail -$no_of_ps /tmp/A380_RFS24/test.ls | head -1`
no_of_ps=`expr $no_of_ps - 1`
echo "package is: $ps_file" >> /tmp/A380_RFS24/log/A380_RFS24.log
ps_file1=`echo $ps_file| sed... (1 Reply)
Discussion started by: sunitachoudhury
1 Replies
10. Shell Programming and Scripting
Hi All,
Please help me out in this... I am new to scripting
How to compare two strings by using the same string in single loop,
I am using ksh
for ex:see the code snippet below
I am writing in java,
Can u guys tell me that in scripting
if ("string1"=="string2" ||... (2 Replies)
Discussion started by: Anji
2 Replies