Hello,
When I run a script, the script sometimes exited. I need to re-run it automatically again. Currently I am using crontab to run the script each 5 minutes. However, I need to have a better solution.
Any idea what to do?
thanks (3 Replies)
Hi all,
I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this:
1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently.
2) So I loaded datafile A... (10 Replies)
Hi Experts,
I have a script called test.sh. I am trying to execute it with sh -x test.sh. Where i can find sequence of steps executed one by one. Now i want to these executions to be captured in a file.
i.e sh -x test.sh > output.txt
the above one is notworking.
can anyone help me... (6 Replies)
Need help creating a script that does the following:
Sort a file
Compare the previous line "last field" with current line "last field"
If they are the same, print output to a file
If they are different print output to a new file
The script should keep creating new files if the previous... (5 Replies)
Hi all,
I have made at small script to make a simple calculation on a file which is formatted in this way:
I want to create a new file in which the value of particular line minus the previous line is printed.
So my wanted output is:
I have made the following program to do the job... (5 Replies)
I am database guy and not very good at shell scripts. I am seeking help to sharp my script coding. I have 5 scripts
1. master script. I use this one to call other four scripts to do database work.
2. db_backup_1 and log_backup_1
3. db_backup_2 and log_backup_2
in master script, I want to... (4 Replies)
How to see the output from remote server during execution of a script ?
I am executing a script (ls) from machine 1 but the o/p should be displayed in machine 2. Can I achieve this ?
Example:-
Machine 1:-
# ls
Machine 2:- (console)
file1 file2 file 3
dir1 dir2 (0 Replies)
I want to create a script that will zip the previous log.
Example.
abc.log.2012.12.02
abc.log.2012.12.01.gzip
abc.log
If today is 2012.12.03 , my current log is abc.log and my previous date is 2012.12.02, i want abc.log.2012.12.02 to compress everytime I run the script.
I can... (5 Replies)
Hello All i have a KSH script which basically takes attribute name as input argument and searches whole Netezza appliance and prints information of where that column is used (Table/Views) etc.
Problem with this approach business users have to raise SUDO access request, Install Putty, run through... (1 Reply)
Hello Team .
I am working a health check script ( bash) to run on linux server ( RedHat) and requirements are
1. The o/p of script need to be send to two diff files . I am testing with tee command . But I am not successful yet , any recommendations if that is the right approach ?
2. The same... (2 Replies)
Discussion started by: Varja
2 Replies
LEARN ABOUT REDHAT
ipfwadm-wrapper
IPFWADM-WRAPPER(8)IPFWADM-WRAPPER(8)NAME
ipfwadm-wrapper - IP firewall administration
SYNOPSIS
ipfwadm-wrapper -A command parameters [options]
ipfwadm-wrapper -I command parameters [options]
ipfwadm-wrapper -O command parameters [options]
ipfwadm-wrapper -F command parameters [options]
ipfwadm-wrapper -M [ -l | -s ] [options]
DESCRIPTION
Ipfwadm-wrapper emulates the behaviour of ipfwadm. You can use this wrapper to use your old ipfwadm firewall rules with ipchains. See
ipfwadm(8) for more details.
If the kernel does not support ipchains (eg. a 2.0 kernel), and the file /sbin/ipfwadm.real exists and is executable, then it will be exe-
cuted with the arguments given to ipfwadm-wrapper. This allows simple dual-booting of 2.2 and 2.0 kernels with the same firewalling
scripts: simply move ipfwadm to ipfwadm.real, and ipfwadm-wrapper to ipfwadm.
SEE ALSO ipfwadm(8), ipchains(8)BUGS
The script isn't clever at parsing command line arguments. You must use separate arguments, rather than run them together. For example,
`ipfwadm -Mle' becomes `ipfwadm-wrapper -M -l -e'.
Fragment accounting rules are not translated correctly; they will account packets with source port 65535.
Due to new kernel restrictions, you must be root even to list rules for 2.2 kernels.
If /usr is mounted from NFS, you will not be able to use ipfwadm-wrapper before /usr is mounted.
AUTHOR
Paul ``Rusty'' Russell <ipchains@rustcorp.com>
February 8, 1998 IPFWADM-WRAPPER(8)