Search Results

Search: Posts Made By: Rksiva
10,215
Posted By Rksiva
If loc2 is same server then use cp, else if its...
If loc2 is same server then use cp, else if its different server then use scp command


cp ${loc1}/file1.txt ${loc2}/test.txt

(or)

scp hostname:${loc1}/file1.txt hostname:${loc2}/test.txt
2,730
Posted By Rksiva
Set the path in environment variable and try to...
Set the path in environment variable and try to execute.


export env_variable=PATH
26,809
Posted By Rksiva
Fine, take that return status from that file and...
Fine, take that return status from that file and store it into variable which u r trying to do manupulations.


variablename = `grep "return status" file_return_value | cut -d'=' -f2 | sed...
1,173
Posted By Rksiva
Use the below, will list all the process with CPU...
Use the below, will list all the process with CPU %


prstat 1 1
Forum: AIX 01-05-2012
24,709
Posted By Rksiva
Try this, find . -user root -perm 777
Try this,

find . -user root -perm 777
11,790
Posted By Rksiva
Try the below code, and try to change the...
Try the below code, and try to change the parameter 86400 * no of days to make it desire to the requirement.


my $dir = '/home';
opendir(DIR,$dir) || die "Can't open $dir : $!\n";
my @files =...
1,696
Posted By Rksiva
Create the body content as a file as below, ...
Create the body content as a file as below,


echo "Hello, this is the test mail" > Inpfile
mailx -s "Hi" r@gmail.com <Inpfile
1,548
Posted By Rksiva
Try execute like below, for i in `cat...
Try execute like below,


for i in `cat <Input Filename>`
do
echo $i | egrep "@|_"
done
6,403
Posted By Rksiva
Try this, it will check only the files having...
Try this, it will check only the files having permissions and we can also avoid the errors.

find . -type f -perm 666 -exec grep "pattern" {} \;

Change the permission, as what ever you want.
11,176
Posted By Rksiva
Try this, find . -name "*.jpg" -exec gzip {} \;...
Try this,
find . -name "*.jpg" -exec gzip {} \;

Also, replace the dot (.) to directory which you want.
Showing results 1 to 10 of 10

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