Sponsored Content
Operating Systems Linux Red Hat How can i disable force options for linux commands Post 302323963 by fpmurphy on Tuesday 9th of June 2009 12:58:14 PM
Old 06-09-2009
alias will not do what you want. You need to write a shell script wrapper around the rm command which removes the -f option from the command line argument list before passing the remaining arguments to the rm command.

Do a Web search for "shell script wrapper"
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I force my Linux RedHat to recognize my modem??

yeah, I tried basically everything I can find from reading books and asking people but I haven't gotten it to work. is there anything else that can be done. I mean, this internal modem I got is like the last thing I expected Linux not to find (2 Replies)
Discussion started by: TRUEST
2 Replies

2. Shell Programming and Scripting

How to disable running commands from vi

Hello, We have a requirement to disable running shell commands via vi using "!". Can anybody please suggest how to disable this option. The requirement arises because we open up a xterm window with a config file in vi mode for the customer to edit. After the customer edits the config... (1 Reply)
Discussion started by: Umesh_Sharoff
1 Replies

3. Shell Programming and Scripting

Help with shell script to run the commands reading options from local file

I have to use shell script to run series of commands on another unix box by connecting through SSH and giving user credentials. For running commands on remote machine I have to use options reading from a local file. Process: Connecting to remote unix server <host1.ibm.com> through ssh Login: ... (2 Replies)
Discussion started by: itsprout
2 Replies

4. Shell Programming and Scripting

Need to disable options from a command

Hi, I am working on a Linux machine. I need to disable 2 options from the available 6 options of a command. For eg. in the "ls" command we have various options like "l ,r, t, a, .... " From this, I need to disable option "a" So when the users type in "ls -a", they should get an error or... (4 Replies)
Discussion started by: aster007
4 Replies

5. UNIX for Dummies Questions & Answers

Will Linux force NIC into promiscuous mode?

Right now I have a computer that I want to use as the monitor for my network. It's currently running Windows 7, and so as I understand it the NIC won't monitor all the traffic on the network. So my question is, if I install Linux on this computer will I be able to force the NIC card into... (1 Reply)
Discussion started by: iJeydon
1 Replies

6. Red Hat

Commands with options hang server

Hello Folks, when i run simple ls command i am getting the output properly. See below: # ls ecapPlat.err FileMover.log.2 FileScrubber.log.1 MeasServer.log mysentfile surv.log ecapPlat.log FileMover.log.3 FileScrubber.log.2 MeasServer.log.1 netConfig.err TimeServer.log FileMover.log... (1 Reply)
Discussion started by: manuswami
1 Replies

7. Debian

Linux booting options

Here is my question, a few years back I was sitting in an airplane and saw the movie display for all the passengers in the back of all the seats boot up. You could see the all too familiar boot-up-scrolling text that we are all used to with Linux. But probably only a few other folks on the plane... (2 Replies)
Discussion started by: caleb8
2 Replies
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)
All times are GMT -4. The time now is 11:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy