Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Change argument in a for loop Post 302870717 by wbport on Monday 4th of November 2013 01:49:28 PM
Old 11-04-2013
Thanks, Don. It performed as advertised.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Argument passing using for or while loop

Hi All, My query is as below: Am basically writing a parser script. My input file has got some variables which are populated by the calling program. callig program: fun1("cat","dog","cow") input.* argument first argument second I want to write a script that should give me... (4 Replies)
Discussion started by: jisha
4 Replies

2. Shell Programming and Scripting

grabbing more than one argument in a loop

Hello all I hope someone can help me. I am trying to convert something I wrote in C to bash. But how do I go about reading more than one item at a time in a for loop? i have been using this format for the loops in the bash script i have been building. e.g. for word in `cat -s... (4 Replies)
Discussion started by: Intense4200
4 Replies

3. Shell Programming and Scripting

loop through file to change some data

Hi, I have a file with the following data -0.00000 0.00000 0.00000 F F F 0.00000 0.00000 0.80000 F F F 0.50000 0.50000 0.60000 F F F 0.50000 0.50000 0.20000 F F F -0.00000 0.00000 0.40000 F F F I would like to change the last 3 lines from F F F to T T T. I tried looping each line but don't... (5 Replies)
Discussion started by: princessotes
5 Replies

4. UNIX for Dummies Questions & Answers

change if-else loop to while-do

Hello friends, i wrote a script which includes a couple of if-else loops but i have to change it to while-do loop as it is not allowed to use "break" in if-else loop in bash. #!/bin/bash -x NUM=`find . -name ufsdump_output1.txt | xargs egrep "End-of-tape detected"` if ; then echo "OK!"... (6 Replies)
Discussion started by: EAGL€
6 Replies

5. UNIX for Dummies Questions & Answers

how to change argument of an script

Hello every one i have an script in sco unix 5.06 to take a long archive over MOD drive and this script contains many line to change destination to DVD anyone can help to me for change this script to take backup on DVD instead of MOD the attached script LzaModBed.engl (1 Reply)
Discussion started by: kaydream
1 Replies

6. Shell Programming and Scripting

Variable name change in a loop

I need to do something like this:for I in var1 var2 var3 ; do $I = "Something calculated inside the loop" doneObviously it doesn't work...but is it possible doing that in other ways? Thanks in advance. (6 Replies)
Discussion started by: canduc17
6 Replies

7. Shell Programming and Scripting

Expect Scripting Loop Argument Desperately Needed!

I am trying to create an Expect script that does the following: 1) Telnets to an IP address and logs in with user ID and Password 2) Issue a CLI command to the server that will output data of which I am particularly interested in a DS1 clock 'Slips' value. I want to be able to keep issuing... (0 Replies)
Discussion started by: dwightlaidler
0 Replies

8. Shell Programming and Scripting

Change a field value in a loop

Hi guys, i have an executable file that contains several records and fields. One of the records has a variable filed that must be changed each time i want to execute the file. Would it be possible that i can use a loop to change the value of that field? Suppose that the field address is: Record... (5 Replies)
Discussion started by: saeed.soltani
5 Replies

9. Shell Programming and Scripting

Doing a loop to change a value in a file

Hi, I have an N number of files in a directory. I like to write a shell script that would make identical plots for each one of these files. The files have names such as: t00001.dat t00002.dat t00003.dat t00004.dat t00005.dat . . . t00040.dat i.e. the... (4 Replies)
Discussion started by: lost.identity
4 Replies

10. Shell Programming and Scripting

Perl Code to change file delimiter (passed as argument) to bar delimiter

Hi, Extremely new to Perl scripting, but need a quick fix without using TEXT::CSV I need to read in a file, pass any delimiter as an argument, and convert it to bar delimited on the output. In addition, enclose fields within double quotes in case of any embedded delimiters. Any help would... (2 Replies)
Discussion started by: JPB1977
2 Replies
LATCP(8)						      System Manager's Manual							  LATCP(8)

NAME
latcp - LAT Control Program SYNOPSIS
latcp [options] DESCRIPTION
latcp is the control program for latd(8). OPTIONS -s Start the LAT daemon. This is the only way to start LAT, you should not attempt to run latd directly or you may get unexpected behviour. latcp -s runs the file /etc/latd.conf as a shell script (using /bin/sh). Any customisations you need to do to the LAT system should be put in this file as latcp commands. The latcp command should be invoked using the environment variable $LATCP. An example latd.conf file is shipped with the package and shown in the man page latd.conf(5). latcp -s passes any extra switches onto latd itself so you can customise latd this way, however latd.conf is recommended. -h Halts latd. This will kill any active sessions without warning. -A Create a local LAT service or reverse LAT port. The syntax for creating a login service is: latcp -A -a service [-i description] [-r rating] [-s] [-C command] [-u user] The -s flag indicates that the service rating is static. Without this the service rating is regarded as a maximum and will be reduced according the the load average of the machine. The -C flag indicates a command to run when a user connects to the service - by default this is /bin/login. The -u flag specifies a user to run the above command as. By default this will be root. The syntax for creating a reverse LAT port is: latcp -A -p tty -V learned_service [-R rem_port] [-H rem_node] [-Q] [-8] The tty name should start /dev/lat and must not exist. The -Q flag indicates that connections to the service is queued. If you con- nect to a queued service and it is busy then your connection will be forced to wait until it is available. You must use this flag for printer services on DECserver 90L terminal servers, and in this case the service name must also be empty. NOTE that the -Q flag is the opposite way round to that on Tru64 Unix(r). The -8 flag tells latd not to muck about with the data. Normally latd will transmit a BREAK if a NUL character is typed, -8 disables this behaviour for ports with (eg) printers or modems attached. -D Delete a service or port. latcp -D -a <service> deletes an advertised service created with latcp -A -a. latcp -D -p <tty> deletes a reverse LAT port created with latcp -A -p -i Change the description of an advertised service latcp -i <description> -a <service> If the description contains spaces or shell metacharacters you should enclose it in quotes. -j Enables the service responder. This feature is needed for small terminal servers that do not collect their own service lists. I currently don't have a list of servers that need this feature. can anyone help?? -J Disables service responder. -Y Purges the list of known services from latd's internal tables. -x Change the rating of an advertised service latcp -x <rating> [-s] -a <service> If the -s flag is present the rating is static, otherwise it is treated as the maximum value and will be decreased according to the system load average. -n Change the system's current node name (Note this affects latd only, not DECnet nor TCP/IP) latcp -n <nodename> -r Change the retransmit limit. This is the maximum number of times latd will transmit a packet without an acknowlegement. If this num- ber is exceeded then the connection is closed as it is assumed that the remote end has gone away. This value must be between 4 and 120 inclusive, the default is 20. -m Sets the multicast timer (in seconds). This timer determines how often services are advertised on the LAN. The default is 60 sec- onds. This value must be between 10 and 180 inclusive. -k Sets the keepalive timer (in seconds). This is the maximum amount of time that a connection can be inactive. When this timer expires an empty message is sent to the remote end. If it does not respond after <retransmit limit> then the connection is closed. This timer is reset every time a packet is sent out. This value must be between 10 and 180 inclusive. -d Displays latd configuration or the learned service table. -d on it's own will display the latd configuration and the services that are advertised by this node. -d -l will display the learned service table. Adding -v will show the learned service table in a ver- bose manner. -n will show the nodes (with MAC addresses) that are associated with serviceless ports (eg reverse LAT ports to DS90L+ servers). -? Displays help for using the command. -G Add groups to the services advertised. The groups can be numbers seperated by commas or a range. eg latcp -G 1,2,3,10-20 Enables groups 1 2 3 and 10 to 20 inclusive. -g Disable groups using syntax as above. -U Add to the list of groups that the server will accept when listening for services. this affects the services that are available using the "reverse LAT" feature. See -G for the syntax. If you are using the "responder" feature it's best make sure that this group list contains all the groups that are likely to be used on the LAN. -u Remove groups from the user groups list. SEE ALSO latd(8), latd.conf(5), moprc(8), llogin(1) LAT Server September 10 2002 LATCP(8)
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy