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. 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
3. Shell Programming and Scripting
Hi,
I have an awk script(test.awk) as below which I am trying to execute through the following command and I am getting error as follows. Request your valid inputs on where I am going wrong. Thanks.
:/usr/chandra# awk -f test.awk input.txt
syntax error The source line is 1.
The error... (18 Replies)
Discussion started by: adept
18 Replies
4. 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
5. 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
6. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix. I have created a cron job, that sends mail using sendmail utility. Am facing a unique problem while making a cron job for this script.
In the script I append a file to my mail using 'cat' command.
cat $report >> $mailMsg
& this $mailMsg is used as mail... (7 Replies)
Discussion started by: anshulporwal
7 Replies
7. Shell Programming and Scripting
I have the last portion of an Open Step ping server shell script that is giving me issues that I need to adapt to Ubuntu 8.10 Client flavor of Unix. Can someone see what is wrong with the following:
# if there are servers that just went down or came back up, notify
# with high importance
if ;... (3 Replies)
Discussion started by: gbxfan
3 Replies
8. 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
9. UNIX for Dummies Questions & Answers
I'm having trouble running this script. I'm new to Unix so be kind please.
#!/bin/sh
# Test to make sure only a single parameter is passed from the
# command line.
if
then
echo "Usage: AC.sh <directory>"
exit
fi
# Is the parameter a directory test
if
then
echo... (3 Replies)
Discussion started by: FSUdude08
3 Replies
10. Shell Programming and Scripting
Hi everyone,
i'm having a little trouble wih my first shell script ever.
So the point of that script is to:
-Archive Zip files in a directory
-Remove txt files from that directory
-connect through sftp and a rsa key to a remote server
-download a couple of files
-unzip downloaded files
... (0 Replies)
Discussion started by: Peanutz
0 Replies