Sponsored Content
Full Discussion: need help with small script
Top Forums UNIX for Dummies Questions & Answers need help with small script Post 302527171 by kishu on Thursday 2nd of June 2011 05:17:03 PM
Old 06-02-2011
Yup...Its working very well...
thank you very much for the help...
today i learned few things in UNIX,
thank you once again
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in a small script

Hi all, I have a file of the following format - EXPRPT:SCN:1.1706E+10:SEQ_START:121652:SEQ_END:121664:0 ( This file name is variable and changes daily) Now in the same directory I have another set of files of the format - EXPRPT.log.0001.0000121669 Now what I am trying to do is to ... (2 Replies)
Discussion started by: super_duper_guy
2 Replies

2. Shell Programming and Scripting

small script help

here is a small script: if ; then echo please enter an argument fi if [ "$1" = "tom"; then a=$1 echo $a fi here is my question. if the script name is j.sh and I run it : j.sh from shell prompt: without a parameter: it prints please enter an argument but if I go with . j.sh (current... (1 Reply)
Discussion started by: rkl1
1 Replies

3. Shell Programming and Scripting

small script

Hi, I am new to unix shell scripting. I just want a little script to check the no. of processes are equal to 8, then echo a successful message otherwise echo a unsuccessful message. Please help. Thanks. (3 Replies)
Discussion started by: everurs789
3 Replies

4. Shell Programming and Scripting

Very small Shell Script Help...

The following Script takes each extension and determine what category it belongs and then moves it into a directory based on the extension. (for eg. 1.sh, 5.sh, 9.sh together; 4.csh, 120.csh, 6.csh together and 7.ksh, 2.ksh, 59.ksh together) and moves them to their respective directories viz.... (2 Replies)
Discussion started by: marconi
2 Replies

5. Shell Programming and Scripting

small script help

#!/bin/ksh for i in *.log* do ls $i|sed 's/\.log$//g' | while read file do echo "file $file is Running" >> lls.txt echo "***************">> lls.txt done done ------------------------------------------------------------------ the output is : file AdapterCCProvisioningInterface... (9 Replies)
Discussion started by: ali560045
9 Replies

6. Shell Programming and Scripting

Small Search script

I need to write a small shell script which does the following : I have a file : root/var/log/ocmp/ocmpclient.log This is a log file which is continuosly getting updated . I have to keep looking into this file all the time. I have to look for four keywords, "File Detected", File Sending",... (2 Replies)
Discussion started by: appu1987
2 Replies

7. Shell Programming and Scripting

need a small script

Hello all, i have a batmail process running on my machine(java process). i just need a script we should detect whether the batchnail is running or not.If not it should restart it. Can anyone assist me on this? (1 Reply)
Discussion started by: Rayzone
1 Replies

8. AIX

Need help in a small script

Hello all, could somebody help..? I have following 6 files (with white spaces in their names) This is file This is file1 This is file2 This is file3 This is file4 This is file5 This is file6 I tried to run the below script, and it did not give me desired ouput.. $ for i in `ls -1` >... (7 Replies)
Discussion started by: gsabarinath
7 Replies

9. Shell Programming and Scripting

small script correction

input cz1 87942437 87952030 M_001144992 0 + 87942537 87949664 0 3 710,114,2506, 0,2725,7087, script awk '{ n11 = split($11, t11, ",") n12 = split($12, t12, ",") for (i = 0; ++i < n11;) { s12 = $2 + t12 print $4"_xon"i, "\t",$4"_xon"i,"\t", $1,... (1 Reply)
Discussion started by: quincyjones
1 Replies

10. Shell Programming and Scripting

Need help to understand this small script

Hi Guys, I need to understand below scipt:- -bash-3.00$ cat rsync-copy.ksh #!/usr/5bin/ksh batch <<%EOF% echo "/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -a --stats /usr/openv/ /OpenvBCK" > openv.LOG # CG /usr/local/bin/rsync ... (6 Replies)
Discussion started by: manalisharmabe
6 Replies
calendar(1)						      General Commands Manual						       calendar(1)

NAME
calendar - Writes reminder messages to standard output SYNOPSIS
calendar [-] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: calendar: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
[Tru64 UNIX] Calls calendar for all users who have a calendar file in their home directories and sends reminders by mail. This flag is usually used only by the superuser as part of daily administrative procedures. DESCRIPTION
The calendar command reads a file named calendar in your current (usually home) directory and writes to standard output any line in the file that contains the current date or the next day's date. The calendar command recognizes date formats such as Dec. 7 or 12/7. It also recognizes the special character * (asterisk) to match any month. For example, it interprets */7 or * 7 as the seventh day of every month. On Fridays, calendar writes all lines containing the dates for Friday, Saturday, Sunday, and Monday. It does not recognize holidays, so if the next day is a holiday calendar prints lines for that day, rather than for the next working day. For you to get reminder service when other users run calendar -, your calendar file must be readable by others (see the chmod command). NOTES
The calendar utility is marked LEGACY in XCU Issue 5. EXIT STATUS
The following exit values are returned: Successful completion. An error occurred. EXAMPLES
To display information in the calendar file that pertains to today and tomorrow, enter: calendar A typical calendar file might look like this: */25 - Prepare monthly report Aug. 12 - Fly to Denver aug 23 - board meeting Martha out of town - 8/23, 8/24, 8/25 8/24 - Mail car payment sat aug/25 - beach trip August 27 - Meet with Simmons August 28 - Meet with Wilson If today is Friday, August 24, then the calendar command displays: */25 - Prepare monthly report Martha out of town - 8/23, 8/24, 8/25 8/24 - Mail car payment sat aug/25 - beach trip August 27 - Meet with Simmons ENVIRONMENT VARIABLES
The following environment variables affect the execution of calendar: [Tru64 UNIX] If this variable is set, the calendar command uses its value as the full pathname of a template file that contains format strings. The strings consist of field descriptors and text characters which are used to provide a more robust set of allowable date formats in different languages using the appropriate settings of the environ- ment variables LANG or LC_TIME. See environ(5) for more information. The list of allowable field descriptions is provided in the date(1) reference page. Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the cor- responding value from the default locale is used. If any of the internationalization variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other interna- tionalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, sin- gle-byte as opposed to multibyte characters in input files). Determines the locale for the format and contents of diagnostic messages written to standard error. Determines the format of date strings recognized by the calendar command. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
Contains user calendar entries. Determines dates. Contains user information. SEE ALSO
Commands: chmod(1), date(1), mail(1), mailx(1) Environment: environ(5) Standards: standards(5) calendar(1)
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy