Search Results

Search: Posts Made By: Afi_Linux
Forum: Red Hat 01-21-2011
13,392
Posted By Afi_Linux
Hi Subhash, Thanks for the help. I have...
Hi Subhash,

Thanks for the help. I have tried the following commands/sysntaxes but getting the same issues.

if [[ $LOG_ARCH_PERCENT -gt "60" ]]; then
if [[ $LOG_ARCH_PERCENT -ge "60" ]]; then...
Forum: Red Hat 01-21-2011
13,392
Posted By Afi_Linux
Hi Cjcox and KevinGB, I did try this...
Hi Cjcox and KevinGB,

I did try this before, however, it gave me the following error

Error:
@NUMARCHLOGS=10: Command not found.
if: Expression Syntax.


I'm still getting this error...
Forum: Red Hat 01-20-2011
13,392
Posted By Afi_Linux
"if" and "then" statement is not working in RedHat
Dear experts,

I'm trying to write a script to calculate the usage of Log Archive in a directory, so if it gets to a point where the directory size is 60%, then send out an FYI.. email. So if then...
41,502
Posted By Afi_Linux
Is the following command will show up in a logs...
Is the following command will show up in a logs if [X]YZ is running? The actual ouput of ps -ef |grep XYZ ?

I want to kill it if running. I'm assuming that the commad "{print $2}" print the PID...
41,502
Posted By Afi_Linux
What does a command "(2>&1)" does? I will...
What does a command "(2>&1)" does?

I will not be running any scripts so I guess I can run the 2nd command as follow assuming that I have to kill XYZ process if running..

sudo -u user2 "ps -ef |...
41,502
Posted By Afi_Linux
I'm guessing that the following lines are two...
I'm guessing that the following lines are two different commands.

1. sudo -u user1 ksh -c /usr/local/bin/myapp >> $LOG 2>&1
2. sudo -u user2 ksh -c "ps -ef | grep [m]yapp | awk '{print $2}' |...
41,502
Posted By Afi_Linux
Hey DGPicket...
Hey DGPicket (https://www.unix.com/members/302085119.html)t,

A question to clarify. I need to execute 4 different commands with 4 different users so it means that I have to switch the users 4...
Forum: Red Hat 10-15-2010
18,043
Posted By Afi_Linux
I didnt the iostat command and got the following...
I didnt the iostat command and got the following results.

I'm assuming that there are many LUNs showing under the device name as listed below. Any clue how to find out that how the file system is...
Forum: Red Hat 10-15-2010
18,043
Posted By Afi_Linux
I was able to man<command> and it shows the...
I was able to man<command> and it shows the results fine.
Forum: Red Hat 10-15-2010
18,043
Posted By Afi_Linux
Volume group Command in LInux
Hi experts,

I'm trying to find otu the list of Volume groups and LUNs. I'm not able to use the following commands in Linux.

1. lvdisplay
2. pvdisplay
3. vgdisplay.

Error: Command not...
Forum: Red Hat 10-08-2010
27,781
Posted By Afi_Linux
Here is the result for ssh-copy-id <hostname> ...
Here is the result for ssh-copy-id <hostname>


/usr/bin/ssh-copy-id: ERROR: No identities found

ssh -v or ssh -vv/vvv does not recognize.
Forum: Red Hat 10-08-2010
27,781
Posted By Afi_Linux
SSH keys are not working
Hi,

I've generated and posted pub. keys in the source system and the target. However, it is still prompting me for the password.

Steps that I have taken.

1. Generated ssh keys :...
41,502
Posted By Afi_Linux
I think I will go with the SSH kyes exchange from...
I think I will go with the SSH kyes exchange from one user to another so the process can be worked.

Correct me If I'm wrong. By exchanging ssh keys, it will do the su without the password prompt...
41,502
Posted By Afi_Linux
I have no issues with the exposing the password....
I have no issues with the exposing the password. What would be the exact command though?

Is this right? >> su - user/password -c "command"
41,502
Posted By Afi_Linux
Hi, The following command is prompting for...
Hi,

The following command is prompting for the password. Is there anyway to specify the password and it does not promt again?

su - user -c "command"
41,502
Posted By Afi_Linux
Switch User in within a Shell Script
Hi Experts,

I'm trying to write a shell script to stop few things where i have to use another user to execute a command. Otherwise it will not work.

Your help is really appreciated
...
Forum: Red Hat 10-06-2010
10,228
Posted By Afi_Linux
I will be testing soon and update you. Thanks,
I will be testing soon and update you. Thanks,
Forum: Red Hat 10-06-2010
10,228
Posted By Afi_Linux
So If i Understand correctly, I can use the...
So If i Understand correctly, I can use the following command to change it permanantly.

- usermod -s /bin/csh username
or
- usermod -s /bin/ksh username

So after using this...
Forum: Red Hat 10-06-2010
10,228
Posted By Afi_Linux
Change user from SH TO CSH
Dear Experts,

I'm currently working on a Red Hat Linux env. I have been working in AIX. My user is set to use SH default so when it logs in, we have to manually csh to do few things. I know you...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 03:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy