10-21-2013
You might try the expect language, it's meant for automating picky interactive things.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
After installing an internal fax modem I get the message above when using the cu -l /dev/tty1A command.
Any help would be most appreciated to the cu command to work again. Thanks. (3 Replies)
Discussion started by: cfaiman
3 Replies
2. Shell Programming and Scripting
I need to run a set of commands on a remote machine using ssh. it should also collect output and return status of each command. Can someone help me how to do this? (1 Reply)
Discussion started by: vickylife
1 Replies
3. Linux
While I know that it's possible to use something like SANE to share a USB scanner over a network, or use NBD or iSCSI to share a USB flash or external HD over the network, I've been wondering about a raw USB <--> TCP/IP transport. Back in the late 90s, I swear I remember hearing about a project... (2 Replies)
Discussion started by: deckard
2 Replies
4. Shell Programming and Scripting
I am getting the error "Can't call method "prepare" on an undefined value at..." with the following code:
<code>my %dbh;
my $dbh = DBI->connect("DBI:mysql:Customer_Data",
$username,
$password
) or die "Database connection... (1 Reply)
Discussion started by: vincaStar
1 Replies
5. Shell Programming and Scripting
Hi
Please help me to resolve.
Question:
I can run this command to change the mode of a device with id=500 as below
dbc "select device mode=3 where id=500;"
How can i run the same query with a file contaning n number of ids ?
file1.txt
12
234
34
500
34
45
Thanks in... (3 Replies)
Discussion started by: sureshcisco
3 Replies
6. Shell Programming and Scripting
Hi,
Can anyone please correct the script such that it run on all the devices in the devicelist.txt file.
The problem is when the script runs it only reads the first device in the list, configures the device and exists.
Script:
The devicelist.txt:
device.crs... (1 Reply)
Discussion started by: sureshcisco
1 Replies
7. UNIX for Dummies Questions & Answers
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies
8. Shell Programming and Scripting
I have a perl script that is called with a router name command list file and output file. The command file can be very large, up to 3k of commands. At first I dumped the command list file to an array and ran the entire file on the router and captured the output. It worked ok for a command list in... (1 Reply)
Discussion started by: numele
1 Replies
9. Linux
Hi All,
Can someone help me in finding out below information from ReHat linux,Solaris,AIX, hp-ux machine :
1. How to find total number of ports in supported by each slot.
2. name of ports that are used to transmit data to the printer
3. total number of slots on a network device (2 Replies)
Discussion started by: omkar.jadhav
2 Replies
10. Solaris
Hi
I am very well aware of configuring central logging (syslog)server on solaris to capture logs of other solaris servers. But don't know how to capture the logs of network devices like Juniper , cisco etc on solaris server. Is this possible through syslog server of solaris. Is there any way we... (1 Reply)
Discussion started by: amity
1 Replies