Search Results

Search: Posts Made By: sraj142
1,703
Posted By sraj142
Retrieve printer detail - AWK
Hi All,

For some reason, I need to have the printer detail from the AIX. Following are the part of /etc/qconfig and /etc/hosts. Can any one of you please help me with an awk some other option to...
4,030
Posted By sraj142
Help required - lsof in AIX
Hi All,

Output of the following command is ok so far ...

netstat -an | grep 192.168.156.1.16507 | awk '{print $5}' | awk '{FS="."} {print $5}'

1297
1350
1394
1211
1255
1259
4606...
Forum: AIX 03-05-2012
1,518
Posted By sraj142
How to find the busiest disk componants
Hi All,

In the rootvg there are two pvs (each 146 gigs). The problem is with performance here. I have noticed IO over those two disks remains 100% maximum time. There are enough memory available...
1,861
Posted By sraj142
Hi Ahamed, Thanks for your reply. ...
Hi Ahamed,

Thanks for your reply.

Following is the section from my script (csh)


if ($chk < $fmin || $chk > $fmax) then
echo "OUT OF RANGE. Current $chk%. Normal from $fmin%...
1,861
Posted By sraj142
Help me fixing event handling in csh on AIX
Hi All,

I have problem with a csh script. This script simply search for a certail process id and kill that using simple kill -5 <pid>. Everything is okay untill there is valid process id trapped....
Forum: AIX 02-10-2012
2,273
Posted By sraj142
Savevg when users online !!
Hi All,

I need to take the backup of non-rootvg using savevg utility. I would like to know, if I can take the backup without shutting down the application & database. Is it possible to take the...
Forum: AIX 02-08-2012
3,262
Posted By sraj142
How to estimate time of mksysb & savevg ?
Hi All,

I need to plan a downtime and need know how much time is required to take mksysb & rootvg on LTO4. Following are vg informations...

# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs...
Forum: AIX 01-18-2012
2,020
Posted By sraj142
Rstrict login based on ip address
Hi Venkat,

Thanks for your reply. Actually I know this command but little weak in scripting. Please see if you can provide me a script which can be called from .login file.

Regards
Forum: AIX 01-18-2012
2,020
Posted By sraj142
Rstrict login based on ip address
Hi All,

I want to check the system ip from which someone is trying to login using a specific user id, suppose "admin". If the ip is not like 182.10.191.* than the user shouldn't be able to login...
969
Posted By sraj142
Hi Jayan, "Process / Transaction ID .. .. .....
Hi Jayan,

"Process / Transaction ID .. .. .. .. .. .. .. 15991150.13 (query)" is the whole input line. Everytime ""Process / Transaction ID .. .. .. .. .. .. .. " is the same. Only the pid gets...
969
Posted By sraj142
Help with AWK
Hi All,

I want to cut the process id i.e. 15991150 from the following line. The whole line is an output of another command. Could you please help me with an AWK to get the pid ?

Process /...
7,956
Posted By sraj142
Using "if -e" with wildcard in csh
Hi Gurus,

In ksh we can check the existance of a file using wild card like ...

if [ -f /home/dbadm/clients/blocked/saltlake.txt.* ]

But in csh is there something like this ??? I have...
1,520
Posted By sraj142
Group by using awk
Hi All,

I have a file in the following format...
*****************************************************
[DEBUG ] [0] 11/10/27 12:09 : Input Record...
3,541
Posted By sraj142
.sh to .csh
Hi All,
Could any one of you give me a hand to convert the following line of codes from .sh to .csh please ?
proc_id=`fuser /tmp/test`
if [ ! -n "$proc_id" ]
then
echo "File is not being used...
5,636
Posted By sraj142
Convert .sh to .csh
Hi All,
Could any one of you give me a hand to convert the following line of codes from .sh to .csh please ?

proc_id=`fuser /tmp/test`
if [ ! -n "$proc_id" ]
then
echo "File is not being used...
3,151
Posted By sraj142
Hi Cero, I have tried your advice, but the...
Hi Cero,

I have tried your advice, but the program is still falling into the while loop while the file is not running... See the following. I guess, the path to my program returned by fuser may...
3,151
Posted By sraj142
WAH !!!! Great Cero. Its worked for me. But...
WAH !!!!

Great Cero. Its worked for me. But couldn't store the pid in a valiable. Actually I wanted to check the length of the pid and if its more than 1 than sleep 5 or continue. I am using bash...
3,151
Posted By sraj142
Hi Anchal, I have already tried the same....
Hi Anchal,

I have already tried the same. Still the incomplete file moving while the external application is moving the file to the source of my shell script. I think to check if the file is...
3,151
Posted By sraj142
Hi guruprasadpr, I have opened the...
Hi guruprasadpr,

I have opened the 119703559.HL7 in another terminal and tried the one you have suggested in another terminal, but its not giving me any info.

12 [shivalpl1] dbadm %...
3,151
Posted By sraj142
Copy or Move problem
Hi All,
I have a simple shell script to move .txt file(s) from a source directory one after another to the destination. The source directory is shared to windows using samba. The source files are...
16,131
Posted By sraj142
Hi CRL, Thanks for your reply. I have...
Hi CRL,

Thanks for your reply. I have actually knew both the programs, but they will open a new connection for every instance of the ncftp. I am actually looking for some solution in Unix like...
16,131
Posted By sraj142
Thanks both Sulti and Corona, No, I don't...
Thanks both Sulti and Corona,

No, I don't wat want to open tons of connections, but 2-3 threads would definately be ok. in my script a while loop continusly monitor the source forder. When a file...
16,131
Posted By sraj142
ftp multiple files at the same time
Hi Corno,
Here is the one line code with output....

ncftpput -A -u <usname> -p <pwd> <000.000.000.00> /remote_dir *

anandv.txt: 21.72 kB 10.79...
16,131
Posted By sraj142
ftp multiple files at the same time
Hi All,

I am using ncftpput in one of my c-shell script to upload files to a remote location. The source files keep coming continuosly and to upload each file ncftpput opens a new connection...
1,234
Posted By sraj142
Hi yazu/corona688, As both of you...
Hi yazu/corona688,

As both of you suggested, I have putted the same code in a shell script and run it by sh yy, I have even try it from the command line too. This time its finished instantly but...
Showing results 1 to 25 of 40

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