Sponsored Content
Top Forums Shell Programming and Scripting what's the largest shell script you've ever written? Post 302115685 by OFFSIHR on Thursday 26th of April 2007 10:54:22 AM
Old 04-26-2007
It was very interesting for me to look at your code Perderabo. I also took a modular approach. Thank you
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Simple shell script to be written

There are 2 shell script files sh1 and sh2. sh2 contains records such as 01 02 03 on different lines. In sh1, I would like to read each record of sh2 till end of file, concatenate them with a comma(,) and store in a variable. Can somebody please help me with the sh1 script? Thanks in... (2 Replies)
Discussion started by: shsandeep
2 Replies

2. Shell Programming and Scripting

Simple shell script to be written

There are 2 shell script files sh1 and sh2. sh2 contains records such as 01 02 03 on different lines. In sh1, I would like to read each record of sh2 till end of file, concatenate them with a comma(,) and store in a variable. Can somebody please help me with the sh1 script? Thanks in... (6 Replies)
Discussion started by: shsandeep
6 Replies

3. UNIX for Dummies Questions & Answers

can a korn shell script be written on HP-UNIX?

Is HP UNIX and Korn different flavours of unix? can a korn shell script be written on HP Unix? (4 Replies)
Discussion started by: soujanya_srk
4 Replies

4. Shell Programming and Scripting

awk second largest, third largest value

I have two text files like this: file1.txt: 133 10 133 22 133 13 133 56 133 78 133 98 file2.txt: 158 38 158 67 158 94 158 17 158 23 I'm basically trying to have awk check the second largest value of the second column of each text file, and cat it to its own text file. There... (13 Replies)
Discussion started by: theawknewbie
13 Replies

5. UNIX for Advanced & Expert Users

ldapsearch in monitoring script without bind password written in script

Hi I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfull) $ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version dn:... (4 Replies)
Discussion started by: slashdotweenie
4 Replies

6. Programming

How could I interact with shell script from webportal written in php?

Hello, I am new on PHP scripting .I have shell scripts which I an running currently from linux server but now I want to make a web portal from where I will run all my scripts but the problem is all my scripts ask for parameters so I am getting confused how could I run my shell script from web... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

7. Shell Programming and Scripting

awk script does not work when written as "one-liner"

In my quest to solve a bigger problem (See my previous post called "Create SQL DML insert statements from file using AWK or similar" - sorry, not allowed to post urls until I have > 5 posts) I'm trying to get my head round awk, but have some problem figuring out why the following script does work... (2 Replies)
Discussion started by: Yagi Uda
2 Replies

8. Shell Programming and Scripting

BASH- Hold script until all contents of a file is written

I have to hit a very large database to pull fields of information. I have a script that runs multiple instance of the same query against the data base and writes contents to a file. The script terminates before the file is completely written to confirmed by ps -ef | grep <script name>... (3 Replies)
Discussion started by: popeye
3 Replies

9. Shell Programming and Scripting

Is Rule 7 of POSIX shell grammar rules written correctly?

The POSIX shell standard grammar rules are at Shell Command Language I am trying to understand Rule 7 and I don't. I think there may be some mistakes there. I am not complaining about the standard; rather, I am concerned that my perception is wrong, and I don't understand something important.... (3 Replies)
Discussion started by: Mark_Galeck
3 Replies
ZNOL(1) 						      General Commands Manual							   ZNOL(1)

NAME
znol - notify via Zephyr upon login or logout of interesting people SYNOPSIS
znol [ on|off ] [ -f file ] [ -u username ] [ -l ] [ -q ] DESCRIPTION
Znol provides a way for you to be notified when "interesting" people log in or out. It uses the Zephyr(1) Notification Service, which causes a message to appear on your screen for every person specified in a namelist (which defaults to $HOME/.anyone). The namelist should have one login name per line. Any line starting with `#' is considered a comment and ignored. Anyone in the namelist who is logged in when znol is executed is printed to stdout. The control arguments are as follows: on|off Turns notification on or off. -f The namelist file is taken to be file. If file is "-", then the standard input is used instead of a file. If file does not exist, an error message is printed, and znol exits. This option may not be used in conjunction with the -u option. -l Causes znol to just list the people in the namelist who are currently logged in, without subscribing to the login messages. This option may not be used in conjunction with the -q option. -q Disables printing who is currently logged in when subscribing. This option may not be used in conjunction with the -l option. -u Instead of reading a file to specify the "interesting" users, the next argument is used as the only "interesting" user. This option may not be used in conjunction with the -f option. EXAMPLES
znol reads the standard namelist file, prints the locations of any users named therein which can be found on the system, and enters subscrip- tions for notices about those users. znol -l -u foo prints the location (if visible) of the user 'foo'. FILES
$HOME/.anyone SEE ALSO
anyone(SIPB), nol(SIPB), zctl(1), zephyr(1), zwgc(1), zhm(8), zephyrd(8) Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service' AUTHOR
Robert S. French (MIT-Project Athena) RESTRICTIONS
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved. zephyr(1) specifies the terms and conditions for redistribution. MIT Project Athena July 1, 1988 ZNOL(1)
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy