The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need inputs on how i can change my script to reduce amount of time the script takes madhul2002 Shell Programming and Scripting 1 04-01-2009 07:40 PM
Passing the values to the secondary script when it invoked by primary script venu_eie UNIX for Advanced & Expert Users 2 07-03-2008 07:10 AM
create a shell script that calls another script and and an awk script magikminox Shell Programming and Scripting 0 06-26-2008 02:50 AM
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 03:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 03:06 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-02-2009
gbxfan gbxfan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 30
Script Help

I am in need of a script that uses a flat file of ip addresses (200 clients) to update client software. It could telnet or use some other command that is ip friendly and would login using a port with login info and would send a link where the probe grabs the software update.

Does anybody have any scripts that would be similar they could pass on that I could use or adapt?
  #2 (permalink)  
Old 04-02-2009
gbxfan gbxfan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 30
my clients are probes that throughout the country and the software I am speaking of is the firmware they run. So I am looking to update the firmware on my 200 probes. I am using a version of Unix called Open Step which I have been told is similar to Mac OS X on the server that will be running this C-Shell Script.
  #3 (permalink)  
Old 04-02-2009
gbxfan gbxfan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 30
This is my base script. It goes out to the clients, but it doesn't complete the download before going to the next client. Can anybody suggest something I can change to make this script stop to do the update and then move on to the next client? Thanks!


# this script works to update Firmware
#
USERNAME=loginname
PDW=password
NEW=http://xx.xx.xx.xx/newsoftwarename.txt
date 2>&1
sleep 1
cat file1 | while read H
do
(
sleep 1
echo $USERNAME
sleep 1
echo $PDW
sleep 2
echo $NEW
sleep 3
) | telnet $H 24
done
  #4 (permalink)  
Old 04-02-2009
gbxfan gbxfan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 30
I know I can add a wait statement but then if there is a network hicup or something that takes a download longer it may move on to the next client without completing. I am hoping I can add some kind of logic or character to make it stop until the process has completed. Thanks for everyone's help and time.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0