Sponsored Content
Full Discussion: Revision of script from don
Top Forums UNIX for Dummies Questions & Answers Revision of script from don Post 302973544 by Don Cragun on Wednesday 18th of May 2016 02:09:12 PM
Old 05-18-2016
Use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)



Second, what operating system are you using?

Third, what is the name of your script?

Fourth, remove the space in front of #! on the first line of your script! And change the line in the script from:
Code:
 done < /home/p611568/d2e/xenos_scripts/emailparm] CODE

to:
Code:
 done < /home/p611568/d2e/xenos_scripts/emailparm

Then rerun your script.

Fifth, show us exactly what command you typed into your shell to run your script. (Please display this data in CODE tags as explained in the tutorial above.)

And, sixth, show us exactly what output your script wrote to your terminal when you ran your script? (Please display this data in CODE tags as explained in the tutorial above.)

Last edited by Don Cragun; 05-18-2016 at 03:20 PM.. Reason: Add additional fix to miscopied code.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I don't think this would be a problem to script but ...

:confused: I have not written any code in about 15 years. The company I work for has Unix servers and they utilize KSH. The scriptors say that what I want can only be scripted in PERL which on my server they say they cannot get to work. They also tell me that what I want done cannot be... (0 Replies)
Discussion started by: CapnJuan
0 Replies

2. Shell Programming and Scripting

don't know how to implentment as unix sh script

for each file if file name like xx* for each line in a file if substring(3,6) found in another txt file output to file-a( filename = orginal file + _a) else output to file-b( filename = orginal file + _a) end Next Line (4 Replies)
Discussion started by: ttivanwan@yahoo
4 Replies

3. Shell Programming and Scripting

script don't stop

Hello everybody! I am new to this and I am trying to change a script in an open source program that plots some offset vectors and then calls a postscript viewer. I have commented away the call for the postscript viewer but somehow the script doesn't return to the shell prompt. I cant figure out... (3 Replies)
Discussion started by: larne
3 Replies

4. UNIX for Advanced & Expert Users

don't understand the unix script

if {"$my_ext_type" = MAIN]; then cd $v_sc_dir Filex.SH $v_so_dir\/$v_fr_file Can somebody tell me what does this suggest. I am pretty new to unix and I am getting confused. What i understood from here is If we have a file extension name as MAIN which we have then we change the directory to... (1 Reply)
Discussion started by: pochaman
1 Replies

5. Programming

Revision Control Sw

Hi All, Please let me know any freeware revision control software name and URL. Any response is highly appreciated. OS: Solaris 5.10 Thanks, Naga:cool: (3 Replies)
Discussion started by: Nagapandi
3 Replies

6. Shell Programming and Scripting

revision of copy script to allow for single quote

I have the following script that I use to copy a list of files from one dir to another, #!/usr/bin/bash # $1=filename of file with the list of files to copy # $2=column header for col in list file with filenames (filePath in most cases) # $3=src dir # $3=destination dir FILE_LIST="$1"... (6 Replies)
Discussion started by: LMHmedchem
6 Replies

7. Shell Programming and Scripting

Why don't kill the script after 5s?

# watchdog process mainpid=$$ (sleep 5; kill $mainpid) & watchdogpid=$! sleep 100 kill $watchdogpid The sleep isn't be killed, I want the script to be killed ---------- Post updated at 03:03 AM ---------- Previous update was at 12:04 AM ---------- I just modify the format of my... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

8. Shell Programming and Scripting

A shell script to run a script which don't get terminated and send a pattern from the output by mail

Hi Guys, I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies
GEMS-SERVER(1)							gems documentation						    GEMS-SERVER(1)

NAME
gems-server - Transmit a shell session in real time. SYNOPSIS
gems-server [-ip ip] [-port p] [-maxconn n] [-wait m] [-log dest] [-noscript] [-script_bin script] gems-server -h | -v DESCRIPTION
Transmits a shell session to be shown in real time in various different computers or terminals. gems-server transmits data in real time to clients via a network connection. Each one of these clients must run the gems-client(1) program to establish connection and receive the transmitted data. Clients can connect and disconnect at any given time, but of course they will only receive the data that is transmitted while they are connected (just like a radio transmission/reception system). The gems system is normally used to transmit a console session and show it in various computers at the same time, but it is also possible to transmit any other kind of data. OPTIONS
-ip IP address where connections will be accepted. -port TCP port. Default: 6666. -maxconn Do not accept more than n simultaneous clients. Default: 25. -wait Wait until m clients are connected before starting the transmission. This is useful to ensure that the first m clients will receive all data transmitted. The default behavior is to start transmission immediately, without waiting for client connections. -log By default, the server does not write log messages. This option configures the destination of logs. The dest argument can be `sys- log' (to log through syslogd(8)), `stderr' (to log through standard error output), or it can be an arbitrary filename (log messages will be appended to the file, if it exists). -noscript By default, the server executes the script(1) program to take terminal data and transmit it. When this option is used the server will not run script, and data will be read form standard input. -script_bin Specifies the location of the script(1). program. Default: /usr/bin/script. -h Show a short help message. -v Show version information. FILES
/var/lock/gems-server.PORT Lock file. gems-server creates this file on initialization and deletes it on exit. PORT is replaced by the TCP port used. gems- server will not run if this file is already present in the system. AUTHORS
Diego Essaya <dessaya@fi.uba.ar> Emiliano Castagnari <ecastag@fi.uba.ar> SEE ALSO
gems-client(1), script(1), syslogd(8) gems AUGUST 2004 GEMS-SERVER(1)
All times are GMT -4. The time now is 10:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy