Sponsored Content
Top Forums Shell Programming and Scripting Need a simple file based utilty for shell scripts Post 302116094 by bobk544 on Tuesday 1st of May 2007 06:43:56 PM
Old 05-01-2007
Thanks drl, that does looking interesting, going to check it out further!

Have a goodone drl!

BobK
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help on Simple shell that look for a file type

Hello Everyone, I got a simple question. I'm trying to write a shell that looks for a file that arived ftp area and keeps looking until it find it. It should look for the file that begins with test and then when it finds it. It starts the wmdaten.sh shell. All i got is that it runs... (5 Replies)
Discussion started by: Peterh
5 Replies

2. Shell Programming and Scripting

two simple question on shell scripts....

:D my first question is how can envoke filename expansion from within a shell script.. forinstance if i execute the script and it asks for a specific directory that i would like to cd to, how can i get the script to use the same file name expension as the command line.. my second question is how... (3 Replies)
Discussion started by: moxxx68
3 Replies

3. Shell Programming and Scripting

Plz Help To convert xml file to text file using bourn shell scripts

If someone out there could help me out with this problem. I would really appreciate it. I am trying to convert xml into text file(fixed length) using Unix Borne shell scripts. My xml file: <root> <header_rec recordtype="00"> <record_id>00</record_id> <country_code>AK></country_code>... (0 Replies)
Discussion started by: ram2s2001
0 Replies

4. Shell Programming and Scripting

simple shell scripts

hi everyone... i'm new to this shell programming and i want help with the following question... i hope someone can help me ...pls plsssssssssss ========================================================== the question ========================================================== A number of... (1 Reply)
Discussion started by: moon14
1 Replies

5. Shell Programming and Scripting

shell scripts to grep dn in ldif file

Hi gurus out there, 1)I am using ksh, in solaris 10. 2)I have one ldif file, I need to output user DN with attributes=<some pattern> to a file. Example: dn: uid=joy,ou=People,o=abc.com,o=isp nswmExtendedUserPrefs: meAutoSign=true nswmExtendedUserPrefs: meSignature=Regards, Joy... (3 Replies)
Discussion started by: bulkbiz
3 Replies

6. Shell Programming and Scripting

problems installing expect utilty

Hi all, I am trying to install expect utility on RHEL 5. It is showing that we also need to install tcl also in order to run it. I have downloaded expect from Tucows Tucows Download - Download Expect 5.32.1 and tcl from SourceForge.net: Downloading ... Can someone please tell me... (5 Replies)
Discussion started by: vikas027
5 Replies

7. Shell Programming and Scripting

calling 'n' number of shell scripts based on dependency in one shell script.

Hello gurus, I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script. i m looking for something like this call 3.1; If 3.1 = "complete" then call 3.2; if 3.2 = ''COMPlete" then call 3.3; else exit The... (1 Reply)
Discussion started by: shashi369
1 Replies

8. Shell Programming and Scripting

Running Multiple scripts based on file size.

Hi, I have created 3 shell scripts which has to run one by one first two shell scripts will create a .txt files...which are used by the third shell script.Now I want to create a master script and run all these in a single script. Please give a pseudo code on how to so the same. ... (4 Replies)
Discussion started by: gaur.deepti
4 Replies

9. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

10. UNIX for Beginners Questions & Answers

Rename files based on simple text file

Hello! New here although not completely new to Unix. I wonder how I could rename files based on the data found in a simple textfile. It goes like this: I have 4 files 1 ldfgkkfjslkdfjsldkfjsf.wav 2 nndsdflksdjf.wav 3 sdflksjdf jjsdflsdfl.wav 4 dkadsdddd.wav Textfile.txt looks like... (14 Replies)
Discussion started by: Oortone
14 Replies
BOOTPD(8)						    BSD System Manager's Manual 						 BOOTPD(8)

NAME
bootpd, bootpgw -- Internet Boot Protocol server/gateway SYNOPSIS
bootpd [-i | -s] [-c chdir-path] [-d level] [-h hostname] [-t timeout] [bootptab [dumpfile]] bootpgw [-i | -s] [-d level] [-h hostname] [-t timeout] server DESCRIPTION
The bootpd utility implements an Internet Bootstrap Protocol (BOOTP) server as defined in RFC951, RFC1532, and RFC1533. The bootpgw utility implements a simple BOOTP gateway which can be used to forward requests and responses between clients on one subnet and a BOOTP server (i.e. bootpd) on another subnet. While either bootpd or bootpgw will forward BOOTREPLY packets, only bootpgw will forward BOOTREQUEST packets. One host on each network segment is normally configured to run either bootpd or bootpgw from inetd(8) by including one of the following lines in the file /etc/inetd.conf: bootps dgram udp wait root /usr/libexec/bootpd bootpd /etc/bootptab bootps dgram udp wait root /usr/libexec/bootpgw bootpgw server This mode of operation is referred to as "inetd mode" and causes bootpd (or bootpgw) to be started only when a boot request arrives. If it does not receive another packet within fifteen minutes of the last one it received, it will exit to conserve system resources. The -t option controls this timeout (see OPTIONS). It is also possible to run bootpd (or bootpgw) in "standalone mode" (without inetd(8)) by simply invoking it from a shell like any other reg- ular command. Standalone mode is particularly useful when bootpd is used with a large configuration database, where the start up delay might otherwise prevent timely response to client requests. (Automatic start up in standalone mode can be done by invoking bootpd from within /etc/rc.local, for example.) Standalone mode is less useful for bootpgw which has very little start up delay because it does not read a con- figuration file. Either program automatically detects whether it was invoked from inetd or from a shell and automatically selects the appropriate mode. The -s or -i option may be used to force standalone or inetd mode respectively (see OPTIONS). OPTIONS
The following options are available: -t timeout Specify the timeout value (in minutes) that a bootpd or bootpgw process will wait for a BOOTP packet before exiting. If no packets are received for timeout minutes, then the program will exit. A timeout value of zero means "run forever". In standalone mode, this option is forced to zero. -d debug-level Set the debug-level variable that controls the amount of debugging messages generated. For example, -d4 or -d 4 will set the debug- ging level to 4. For compatibility with older versions of bootpd, omitting the numeric parameter (i.e., just -d) will simply incre- ment the debug level by one. -c chdir-path Set the current directory used by bootpd while checking the existence and size of client boot files. This is useful when client boot files are specified as relative pathnames, and bootpd needs to use the same current directory as the TFTP server (typically /tftpboot). This option is not recognized by bootpgw. -h hostname Specify the hostname corresponding to the IP address to listen on. By default, bootpd listens on the IP address corresponding to the machine's hostname, as returned by gethostname(3). -i Force inetd mode. This option is obsolete, but remains for compatibility with older versions of bootpd. -s Force standalone mode. This option is obsolete, but remains for compatibility with older versions of bootpd. bootptab Specify the name of the configuration file from which bootpd loads its database of known clients and client options (bootpd only). dumpfile Specify the name of the file that bootpd will dump its internal database into when it receives a SIGUSR1 signal (bootpd only). This option is only recognized if bootpd was compiled with the -DDEBUG flag. server Specify the name of a BOOTP server to which bootpgw will forward all BOOTREQUEST packets it receives (bootpgw only). OPERATION
Both bootpd and bootpgw operate similarly in that both listen for any packets sent to the bootps port, and both simply forward any BOOTREPLY packets. They differ in their handling of BOOTREQUEST packets. When bootpgw is started, it determines the address of a BOOTP server whose name is provided as a command line parameter. When bootpgw receives a BOOTREQUEST packet, it sets the "gateway address" and "hop count" fields in the packet and forwards the packet to the BOOTP server at the address determined earlier. Requests are forwarded only if they indicate that the client has been waiting for at least three seconds. When bootpd is started it reads a configuration file, (normally /etc/bootptab) that initializes the internal database of known clients and client options. This internal database is reloaded from the configuration file when bootpd receives a hangup signal (SIGHUP) or when it dis- covers that the configuration file has changed. When bootpd receives a BOOTREQUEST packet, it looks for a database entry matching the client request. If the client is known, bootpd com- poses a BOOTREPLY packet using the database entry found above, and sends the reply to the client (possibly using a gateway). If the client is unknown, the request is discarded (with a notice if debug > 0). If bootpd is compiled with the -DDEBUG option, receipt of a SIGUSR1 signal causes it to dump its internal database to the file /tmp/bootpd.dump or the dumpfile specified as a command line parameter. During initialization, both programs determine the UDP port numbers to be used by calling getservbyname(3) (which normally uses /etc/services). Two service names (and port numbers) are used: bootps BOOTP Server listening port bootpc BOOTP Client destination port If the port numbers cannot be determined using getservbyname(3) then the values default to bootps=67 and bootpc=68. FILES
/etc/bootptab Database file read by bootpd. /tmp/bootpd.dump Debugging dump file created by bootpd. /etc/services Internet service numbers. /tftpboot Current directory typically used by the TFTP server and bootpd. SEE ALSO
bootptab(5), inetd(8), tftpd(8) DARPA Internet Request For Comments: RFC951 Bootstrap Protocol RFC1532 Clarifications and Extensions for the Bootstrap Protocol RFC1533 DHCP Options and BOOTP Vendor Extensions AUTHORS
This distribution is currently maintained by Walter L. Wimer <walt+@cmu.edu>. The original BOOTP server was created by Bill Croft at Stanford University in January 1986. The current version of bootpd is primarily the work of David Kovar, Drew D. Perkins, and Walter L. Wimer, at Carnegie Mellon University. Enhancements and bug-fixes have been contributed by: (in alphabetical order) Danny Backx <db@sunbim.be> John Brezak <brezak@ch.hp.com> Frank da Cruz <fdc@cc.columbia.edu> David R. Linn <drl@vuse.vanderbilt.edu> Jim McKim <mckim@lerc.nasa.gov> Gordon W. Ross <gwr@mc.com> Jason Zions <jazz@hal.com>. BUGS
Individual host entries must not exceed 1024 characters. BSD
February 10, 2004 BSD
All times are GMT -4. The time now is 10:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy