Thanks for your input.yeah I have remove that.when i executed the script it is throwing error like this.
It is strucking up there not going ahead furteher.
---------- Post updated at 01:59 AM ---------- Previous update was at 01:55 AM ----------
May i know how can I do that?My Ultimate requirement is if the user enter input lies in between the mentioned 4 id's I need to accept it and execute some svn command.
In case if it is another userid other than the mentioned ID I should prompt sayinng invalid userid and agian prompt for Please enter correct userid.
Hello ,
I am trying to print the footer of evry file in the given directory with xargs command like follows
ls -1 | xargs -I {} gzcat {} | tail -1
now problem with this is only last file foooter is getting printed as " | tail -1 " is getting executed for the last file.
I know this can... (4 Replies)
Hi all,
Is there a way to prevent users from being able to execute commands less a select few? For instance, I wish to allow the user to be only able to execute 1 command, which is exec a.sh. He should not be able to do simple stuff such as ls, cd, rm, cat, etc.
Can this be achieved?
... (1 Reply)
Hi All
I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh
URL="www.google.com"
VBURL="10.5.2.211"
echo "Setting route for $URL for GPRS"
URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1`
echo "Executing ... (3 Replies)
Hi,
I have one text file input.txt, which has folders path as follows:
/home/user/automate/abc
/home/user/automate/abc/xyz
/home/user/automate/test
/home/user/automate/test2
/home/user/automate/test2/abc/Main
In those folders i have .svn folder.
1) First i want to remove .svn like rm... (5 Replies)
I am writng a script in which there is an installation file.The installer runs good. But after the installer command there are some files and commands which are based on those installed files. Now problem is the commands get executed before the installer is totally installed. So is there any... (5 Replies)
Hi guys, I have a piece of snippet below which asks the user to input some numbers
if isDatasubEnabled && isReconEnabled; then
echo "1 = CGT, 2 = Subscriber, 3 = Order Monitor, 4 = Revaluations, 5 = Reconciliation, 6 = All, 7 = Exit"
elif isDatasubEnabled &&... (4 Replies)
I am having the 15 servers which need to do the monitoring
Hi I need a shell script, By which i can log in to multiple servers and execute the commands.. I need to specify the username and password in the scripts.
Please help me to write the script so that it can login with username and... (5 Replies)
Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
i m logged in with user1 id.
i wish to execute the below as root user for which i tried several commands but all of them fail.
sudo 'cat /tmp/tmp.file >>/etc/logger'
Password:
sudo: cat /tmp/tmp.file >>/etc/logger: command not found
sudo cat /tmp/tmp.file >>/etc/logger
bash:... (5 Replies)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
LEARN ABOUT DEBIAN
fence_cpint
fence_cpint(8) System Manager's Manual fence_cpint(8)NAME
fence_cpint - I/O Fencing agent for GFS on s390 and zSeries VM clusters
SYNOPSIS
fence_cpint [OPTION]...
DESCRIPTION
fence_cpint is an I/O Fencing agent used on a virtual machine running GFS in a s390 or zSeries VM cluster. It uses the cpint package to
send a CP LOGOFF command to the specified virtual machine. For fence_cpint to execute correctly, you must have the cpint module installed,
and hcp in your PATH. NOTE: for fence_cpint to send a command to another virtual machine, the machine executing it must either be a privi-
lege class C user or it must be the secondary user of the virtual machine to be fenced. This means that unless all of you GULM server
nodes are privilege class C, fence_cpint can only be used with SLM.
fence_cpint accepts options on the command line as well as from stdin. fence_node sends the options through stdin when it execs the agent.
fence_cpint can be run by itself with command line options which is useful for testing.
Vendor URL: http://www.ibm.com
OPTIONS -h Print out a help message describing available options, then exit.
-u userid
userid of the virtual machine to fence (required).
-q quiet mode, no output.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by fence_cpint.
userid = < parm >
userid of the virtual machine to fence (required).
SEE ALSO fence(8), fence_node(8)fence_cpint(8)