script help shell session times out


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers script help shell session times out
# 1  
Old 09-17-2011
script help shell session times out

Code:
while read s1 ; do
 url=
suf=ignore=.csv;
  wget $url$s1$suf;
  sleep 5;
  cat /home/joey/public_html/charts/program/fn\charts/data/tickers/header.txt > $s1.txt;
  chmod 777 $s1.txt;
  sed '1d' table.csv?s\=$s1 >> /home/joey/public_html/charts/program/charts/data/tickers/$s1.txt;
rm -Rf table*
sed -i -e "1d" /home/joey/public_html/charts/program/charts/data/tickers/symbollistsmallcopy ;
done < /home/joey/public_html/charts/program/charts/data/tickers/symbollistsmallcopy

My ssh connection drops script stops but the sed -i -e "1d" ends up deleting everything in the symbollist, the idea was to delete one symbol in list when completed from input file. So I could pick up from where I left off with the symbollistsmallcopy. However when ssh connection drops the entire symbollist is deleted.

Last edited by pludi; 09-17-2011 at 04:47 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Informatica post session shell script

Hi, This is regarding a issue we are facing in informatica post session. We place a shell script in informatica job. The shell script will need to upload a dummy file to another server.The shell script is running fine.However in informatica job not completing and throwing error It's... (1 Reply)
Discussion started by: nag_sathi
1 Replies

2. Shell Programming and Scripting

i want to execute shell script on remote server with in sftp session

Hi, I want to execute shell script with in sftp session for remote server. like i have a shell script test.sh that is on local server.i want to execute that script on remote server sftp user@192.168.56.10 sftp> test.sh ---execute for remote server not for local server. sftp... (3 Replies)
Discussion started by: SAUD PASHA
3 Replies

3. Shell Programming and Scripting

Execute shell script within sftp session

Hi all , can any one tell me how to run a script within a sftp session. let me tell u in bit clear way : After I connected to sftp location , cd ing to some directory then I need to execute a one script. Please tell me if u have any idea on this . Looking forward to your reply guys... (1 Reply)
Discussion started by: sravan008
1 Replies

4. Shell Programming and Scripting

Shell script to run x times

Hi, First i need to cd to this directory $SWDIR/util Second i need to run the following either 4 times or 20 times ./swadm add_process 1 BG Y how can i put this in a script which should ask for user input on how many times you want to run this Thanks, (5 Replies)
Discussion started by: lookinginfo
5 Replies

5. Shell Programming and Scripting

session timeout for shell script

I am executing test.sh script. But this script takes lot of time and in the meantime the shell timeouts without completing the script. Is there any command which will continue processing the script. Thanks (3 Replies)
Discussion started by: infyanurag
3 Replies

6. Shell Programming and Scripting

launch vnc session from unix shell script

Hi All, OS:AIX 64 bits Would like to know what is the command to launch vnc session from unix shell script so that Reports server is started from vnc session which should be launched from within the shell script. Thanks for your time! Regards, (0 Replies)
Discussion started by: a1_win
0 Replies

7. UNIX for Dummies Questions & Answers

Foreground shell script terminated when session expired

Hi, I ran a shell script in the foreground but it seems that the shell script teminated when the session expired. Please let me knw if it's possible or hypothesis is incorrect ASAP. (2 Replies)
Discussion started by: Ankgne
2 Replies

8. Shell Programming and Scripting

closing a telnet session on error, in a shell script

I am using a shell script to telnet into a remote unix server and execute certain commands. But if any command being executed remotely, throws an error, the script just hangs. And the telnet session does not get closed. I want to be able to close the session and complete the script execution in... (1 Reply)
Discussion started by: farahzaiba
1 Replies

9. Shell Programming and Scripting

One shell script --2 parts need to execute during different times

Hi All, Have one job . first part of it needs to run on five days of the week , while second part of the job needs to run on two days of the week. How do I go abt this? Thanks (2 Replies)
Discussion started by: cbecentral
2 Replies

10. Shell Programming and Scripting

Shell script to manipulate a message count for the same IP @ diff session

I have a file as like below, 10:20:30.45 START 10.20.30.40 10:20:31.46 HELLO 10.20.30.40 10:20:32.46 START 10.20.30.41 10:20:33.44 END 10.20.30.40 10:20:35.44 HELLO 10.20.30.41 10:20:36.56 HELLO 10.20.30.41 10:20:37.78 HELLO 10.20.30.41 10:20:38.99 START 10.20.30.40... (1 Reply)
Discussion started by: gobinath
1 Replies
Login or Register to Ask a Question
HTMAKE(1)						       GLOBAL cgi Utilities							 HTMAKE(1)

NAME
htmake - create GLOBAL hypertext source searchable by gsearch.cgi SYNOPSIS
htmake [htags options] [--url=base-url] [destdir] DESCRIPTION
htmake is a wrapper script that creates searchable hypertext from program source code and records information into a path database needed for a centralised search mechanism. Prior to using this command you must have installed gsearch.cgi using the htconfig -I option and configured the location of the path data- base in htmake.conf Before you can create the hypertext source you need to execute gtags(1) from the root directory of the source tree. htmake is then called from the same place. htmake uses htags(1) to create the hypertext with a unique id and htconfig(1) to make the required entries in the path database. OPTIONS
The following options will be passed to htags(1) if used. -a Make an alphabetical function index. -c Compress html. Use gzip(1) with .ghtml suffix. -C Compress html. Use gzip(1) with .html.gz suffix. -d tagdir, --tags=gtagsdbpath Specifies the directory in which GTAGS and GRTAGS exist. The default is the current directory. -F Use frames for definition index, file index and main view. -l Make a name tag for each line of hypertext created. -n Print out the line numbers. -t title The title of this hypertext. Defaults to the last component of the current path. --action=cgi-url Specify the location search queries are submitted to. Defaults to the value set in htmake.conf or to http://localhost/cgi-bin/gsearch.cgi The remaining options are more general or are passed to htconfig(1). --url=base-url the base url for your new hypertext source. For best results always use absolute url's here. eg. http://host/~user/mysource It defaults to file:/destdir destdir The directory in which hypertext is generated. The default is ./HTML -v, --verbose Activate the inbuilt screen saver. Give your phosphors a workout. EXAMPLES
$ cd /usr/src/myprog $ gtags $ htmake $ cd /usr/src/myprog $ gtags -c $ htmake -c --url=http://host/~user/prog/HTML /home/user/public_html/prog FILES
/etc/gtags/htmake.conf path database BUGS
As a wrapper htmake gets to inherit bugs from other software too. Isn't life fun. This is alpha software - expect anything! SEE ALSO
htconfig(1), htags(1), gtags(1), global(1). AUTHOR
Ron Lee <ron@debian.org> CREDITS
Thanks to Shigio Yamaguchi <shigio@gnu.org> for creating GLOBAL and releasing it as free software. A truly cool productivity tool! Debian GNU/Linux 27 March 1999 HTMAKE(1)