Search Results

Search: Posts Made By: ajaincv
3,877
Posted By ajaincv
Comment lines in FSTAB using perl
Hi All,

I need to comment specific Two Lines in fstab & want to do using & also want to ensure that is done corretly.

I am trying the below method. But its giving Search pattern not...
Forum: Red Hat 09-27-2011
1,356
Posted By ajaincv
Memory Reprentation Mismatch In TOP
Hi All

I have server of Redhat Enterprise Linux 6.1 with the below configuration


OS: RHEL 6.1
Kernel:2.6.32-131.0.15.el6.x86_64
SOCKET:1
CPU:6
Memory 12 GB


I am running a tool &...
Forum: Solaris 09-06-2011
2,510
Posted By ajaincv
Gtar Lib file not found.
Hello All,

I am preparing a script to view or Extract contents of a tape drive using gtar.But facing a strange issue while trying to extract files using gtar.

If running script using sudo the...
Forum: Red Hat 09-05-2011
3,674
Posted By ajaincv
Logrotate on RHEL 5
Hi All,

Can any one let me me know if i run /usr/sbin/logrotate /etc/logrotate.conf will it read the whole /var/log/messages or it just see the time stamp of message file & then rotate the logs....
Forum: Solaris 09-02-2011
6,064
Posted By ajaincv
I started all the commands from a shell script...
I started all the commands from a shell script using while loop & send all the commands to backgroud.

Regards

Ankit
Forum: Solaris 09-02-2011
6,064
Posted By ajaincv
Parallel Find command
Hi All,

I ran parallel 80 Commands as below,

#################################3
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP

23677 root 1040K 856K sleep 58...
Forum: Red Hat 09-02-2011
5,079
Posted By ajaincv
Hostname command issue
Hi All,

I am using redhat Linux 5.2.2 on vmware. I have created VM Machine using kickstart & rest 10 machines i created using vmware cloning.

On the base machine which i installed from...
1,193
Posted By ajaincv
Thanks Kamraj Regards Ankit
Thanks Kamraj

Regards

Ankit
1,193
Posted By ajaincv
Cd error terminating loop
Hi All,

I am trying to make a small shell script.In this it will got directory as per variable & run the find command on that directory.There are 120 + directories & not sure all of them are...
2,959
Posted By ajaincv
Hi, Now i have given full path to...
Hi,

Now i have given full path to ladapsearch but still getting the below error while running from cron.

########################
[root@vmtest15 tmp]# cat user_check_ankit.log
+...
2,959
Posted By ajaincv
Script running using cron
Hello All,

I am running the below script.when i am running from shell or terminal its running fine but running using cron its not working.

################################
b36376 27 % cat...
4,384
Posted By ajaincv
Thanks Peasant.Its worked wonderfully. ...
Thanks Peasant.Its worked wonderfully.

Regards

Ankit
4,384
Posted By ajaincv
Pkill Argument issue
Hi All,

I am writing a shell script to kill user processes on all servers using pkill.

But when i am passing user id directly ist works but when password userid as variable its not working &...
1,000
Posted By ajaincv
Script running from another script issue
Hello All,

I am ruuning the below script.

userchecking.sh
###########################
#! /bin/ksh
NIS_SCRIPT_HOME="/mot/systems/NIS_SCRIPT_NEW"
. $NIS_SCRIPT_HOME/common.env...
4,024
Posted By ajaincv
tcsh env setting using shell script
Hi All,

I have made a file file usercreate.sh & it has to run in tcsh env & needs some path to be set.

my script is as below.
##########################
#!/bin/csh

setenv PATH...
3,052
Posted By ajaincv
ONLY SU Sudo access
Hello All,

I want to create a script that will do ONLY su to any user on the server with hpadmin login using sudo. Can anyone let me know how can it do it.

Regards

Ankit
1,340
Posted By ajaincv
Hi, For better understnding of script...
Hi,


For better understnding of script please find script in attachment.

Regards

Ankit
1,340
Posted By ajaincv
If condition
Hi All,

I am using the below if command to comparing two variables but is condition is true but going in else part.

#################
if [ ${DS_UP} -eq 0 -a ${DS_UP_SYS} -eq 0 ] ; then
...
1,305
Posted By ajaincv
MSQL insert record
Hi All,

I have created a script to capture process run by the user & put into to mysql DB.

But some how i am anot able to insert output of ps aux as below sting in mysql db.
...
1,533
Posted By ajaincv
Firsly nawk is not running on my system & if i m...
Firsly nawk is not running on my system & if i m using without nawk its print all information.

Regards

Ankit
1,533
Posted By ajaincv
Hi Franklin, Thanks for your reply.Query is,...
Hi Franklin,

Thanks for your reply.Query is, i am searching on Total collection so need to print all the information between them.Total collection may be n & my zones will also vary.

Regards
...
1,533
Posted By ajaincv
Pattern Search using AWK
Hi All,

I have the below file data.txt.Using awk i want to grep all the zone data.Form the below command i can extact data upto of zone i give but i want it should print until next pattern.
awk...
917
Posted By ajaincv
Output from Logs
Hello All,

I have created a script to capture logs on every day at every 3 Min.Please find in attach.So my goal is to mail all the logs to myself for pertical date.So can anyone guide me how can i...
865
Posted By ajaincv
Logs Presentation
Hello All,

I am trying to capture system logs for specific tools run by users.

So my script create logs from 10 different server.So is there any script & tool from that i can read or present...
Forum: Red Hat 06-10-2011
1,354
Posted By ajaincv
Compare Empty Variable
Hello All,

I am running the below code in my script. I want if jk is empty nothing should be appened to the file total_usage.

but apparently its not happening.Kindy let me know how to do it.
...
Showing results 1 to 25 of 41

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