05-03-2011
ah good point will give it a try.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am running a script where i need to run another command in a particular folder which I do not have access so I need
to login as su to that folder and run that script...what are the options I need so that I
can skip interactive mode ..here is what I tried..
#! /usr/bin/sh... (1 Reply)
Discussion started by: mgirinath
1 Replies
2. Shell Programming and Scripting
Hi,
I am trying to write a script to search a log- IPaddress being the search criteria, I would ideally like the script to ask the ipaddress
Enter IP address - 244.258.27.225
And the ideal result would be for the script to get all the entries in the log file for a particular IP address,... (3 Replies)
Discussion started by: fuzion.hyd
3 Replies
3. Shell Programming and Scripting
Hello,
I only know the basic for shell programing. I need help for this, I thinks this is a basic for anyone who know a litle of shell scripting.
I need creat a script for a rotatate logs, when a filesystem is full. I have a filesystem.
The rotate consist in zip the current log (copy) and... (1 Reply)
Discussion started by: El Rengo
1 Replies
4. Shell Programming and Scripting
Can we write any command/Script....to find out the data in a log file for last 5 mins? (2 Replies)
Discussion started by: shilpaamu
2 Replies
5. Shell Programming and Scripting
I have a log which is configured as follows:
date time code1 notes: code2
A monthly job is run based on information supplied from this log. The end of each monthly job is clearly indicated by a code within 'code1'. At this time someone is performing a less on the log, moving to the end,... (2 Replies)
Discussion started by: bwatlington
2 Replies
6. HP-UX
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
Discussion started by: Shirishlnx
3 Replies
7. Shell Programming and Scripting
Hi all,
Am trying to write my own log rotate script. Curremtly, what I have is as below:
#!/bin/ksh
file_to_rotate=${1}
x=${2}
while ]
do
let curr=${x}
let prev=${x}-1
if ] ; then
#echo "cp -p ${file_to_rotate} ${file_to_rotate}.${curr}"
cp -p... (7 Replies)
Discussion started by: newbie_01
7 Replies
8. Shell Programming and Scripting
# cat /tmp/checkdate.log
SQL*Plus: Release 11.2.0.1.0 Production on Mon Sep 17 22:49:00 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
FIRST_TIME NEXT_TIME... (1 Reply)
Discussion started by: SarwalR
1 Replies
9. Shell Programming and Scripting
Hi Team -
I"m very new to Shell Scripting so I have a rather novice question. My forte is Windows Batch Scripting so I was just wondering what the Shell Script equivalent is to the DOS command %~n?
%~n is a DOS variable that dispayed the script name.
For instance (in DOS):
REM... (11 Replies)
Discussion started by: SIMMS7400
11 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am totally a newbie to any programming languages and I just started an entry level job in an IT company. One of my recent tasks is to create a script that is able to show the log file of linux service (i.e. ntpd service)
lets say, if I run my script ./test.sh, the output should be... (3 Replies)
Discussion started by: xiaogeji
3 Replies
LEARN ABOUT DEBIAN
etsf_io
ETSF_IO(1) User Commands ETSF_IO(1)
NAME
etsf_io - manual page for etsf_io
SYNOPSIS
etsf_io [-h | -a action] [[-i file]...] [[-f flag]...]
DESCRIPTION
[-o file] [arguments]
Handle ETSF files, see --action option.
-h --help : show this little help.
-a --action value : give the action to perform.
Possible action may be: * 'merge' to gather several files that have been splitted.
* 'content' to get the name of specifications the file matches.
* 'check' to check the validity of the file against specifications.
-o --output-file file : give the path to the output ETSF file.
-i --input-file file : give the path for an input file. This option can be used one or several times.
-l --list : when action is check, it give the list of available flags.q
-f --flag value : give a flag name (get valid names from -l option).
Examples:
Merge three files, etsf_io -a merge -i file1.nc -i file2.nc -i file3.nc -o output.nc
Get the contents of file test.nc, etsf_io -a content test.nc
Get the list of flags for validity checks, etsf_io -a check -l
Checks with two flags, etsf_io -a check -f flag1 -f flag2 test.nc
SEE ALSO
The full documentation for etsf_io is maintained as a Texinfo manual. If the info and etsf_io programs are properly installed at your
site, the command
info etsf_io
should give you access to the complete manual.
etsf_io November 2011 ETSF_IO(1)