10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
does the expect script tries to match for everyline on the screen irrespective of the prompts???
spawn ./Inst.sh
expect "path? (Y/N)"
send "Y\r"
expect "folder path"
send "$DIR1\r"
expect "path? (Y/N)"
send "Y\r"
expect "folder path2"
send "$DIR2\r"
After the installer... (11 Replies)
Discussion started by: premseth
11 Replies
2. Shell Programming and Scripting
#!/bin/bash
if ; then
echo "Lipsa IP";
exit;
fi
i=1
ip=$1
while ; do
if ; then
rand=`head -$i pass_file | tail -1`
user=`echo $rand | awk '{print $1}'`
pass=`echo $rand | awk '{print $2}'`
CMD=`ps -eaf | grep -c mysql`
if ; then
./mysql $ip $user $pass &
else
sleep 15... (6 Replies)
Discussion started by: galford
6 Replies
3. Programming
Gents,
This is a follow up to my previous post:
https://www.unix.com/shell-programming-scripting/217521-python-newbie-question-regex.html
Here the latest function that I am having issues with:
def find_all_flvs(url):
soup = BeautifulSoup(urllib2.urlopen(url))
flvs =
for... (2 Replies)
Discussion started by: metallica1973
2 Replies
4. Shell Programming and Scripting
#!/bin/bash
glist=`cat /etc/group | cut -d ":" -f1,4`
ulist=`cat /etc/passwd | cut -d ":" -f1,6`
for i in $glist
do
echo "$glist"
done
for i in $ulist
do
echo "$ulist"
done
chkgrp=`cat /etc/group | cut -d ":" -f1`
for a in chkgrp
do (4 Replies)
Discussion started by: mduduzi
4 Replies
5. Shell Programming and Scripting
So what i am trying to do is write a script that takes in any number of scrambeled words and unscrambles them.
I have already addressed the issues of partial matches, exits silently if there are no matches, and finds words regardless of case that they were input. but while trying to get it so... (3 Replies)
Discussion started by: alindner
3 Replies
6. Shell Programming and Scripting
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
1 Replies
7. Shell Programming and Scripting
Hi All
i am creating a script to perform a nslookup on a specified host (so in otherwords it will be: zong(script name) 172.x.x.10(ip adress). i am scripting in tcsh. unfortunately i think i am doing something wrong as it keeps giving me syntax error. can someone help?
@ num=1
set arg='ping... (2 Replies)
Discussion started by: brian112
2 Replies
8. Shell Programming and Scripting
Hi.
The below part of my bash script kicks out the following error message:
$ ./extract_eod_report_stats_new.sh 2010-04-23
./extract_eod_report_stats_new.sh: line 204: syntax error near unexpected token `('
./extract_eod_report_stats_new.sh: line 204: `TRANSACTIONS_RECEIVED_TOP=`grep... (6 Replies)
Discussion started by: Peter.Lovell
6 Replies
9. Shell Programming and Scripting
So I am new to unix, and actually anything outside drag and drop with the mouse (been learning for about a week so far) . I have been using the foreach command in tcsh because I am working on a group of files. Basically what I need is to insert part of the filename as the first line in the file.... (0 Replies)
Discussion started by: thepolypore
0 Replies
10. Shell Programming and Scripting
HI All
Some body wrote to me this Telnet Script :
#!/opt/perl/bin/perl
$ip = $ARGV;
die ("IP must be passed as an argument. $!\n") unless defined($ip);
use Net::Telnet ();
$handle = new Net::Telnet (Timeout => 10, Prompt => '/.*(#|>|\))\s*$/');
$handle->open("$ip");... (10 Replies)
Discussion started by: Darknight
10 Replies