Search Results

Search: Posts Made By: Rksiva
9,823
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,667
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
Forum: Solaris 01-10-2012
3,844
Posted By Rksiva
Better use the FLAGGING mechanism, to avoid...
Better use the FLAGGING mechanism, to avoid dupicate trigger of script.


#!/bin/sh
PATTERN=`date +%Y%m%d`
USERNAME=xxx
PASSWORD=xxx
IP=x.x.x.x

touch ftpProcessing.lck // When script...
Forum: Solaris 01-10-2012
2,858
Posted By Rksiva
Also you can check whether the crontab file for...
Also you can check whether the crontab file for particular user is exists or not, if exists,


ls -ltr /var/spool/cron/crontabs/<<userfile>>


then edit as below,


export EDITOR=vi...
2,507
Posted By Rksiva
Try this, chmod 777 <<dirname>>/* ...
Try this,


chmod 777 <<dirname>>/*

For e.g.

chmod 777 /tmp/20120110/*
22,252
Posted By Rksiva
Try this, #!/bin/ksh while read...
Try this,


#!/bin/ksh

while read line
do
. <<Path>>
autorep -j $line
done<Jobs_List.txt
3,170
Posted By Rksiva
Use this, will list the list of registered user...
Use this, will list the list of registered user id associated with group id.


awk -F':' '{ print $1,$3,$4 }' /etc/passwd


Below command to list only the list of registered users,

...
4,128
Posted By Rksiva
Try this, java -Xms64m -Xmx256m...
Try this,


java -Xms64m -Xmx256m -Djava.library.path="$MY_CLASSPATH" -cp "$MY_CLASSPATH" <<class-name>> -DconsumerEnv="$consumerEnv"
4,534
Posted By Rksiva
The space is unexceptional, try the below one. ...
The space is unexceptional, try the below one.


ORACLE_SID=fpql;export ORACLE_SID
ORACLE_BASE=/dboracle/orabase ;export ORACLE_BASE
ORACLE_HOME=/dboracle/orabase/product/9.0.4.1_abc01i ;export...
26,105
Posted By Rksiva
Could u pls throw the error occured in sed...
Could u pls throw the error occured in sed command?
1,200
Posted By Rksiva
Try this, will remove any no. / in end ...
Try this, will remove any no. / in end


echo "$dirpath" | sed 's/[\/]*$//g'
14,062
Posted By Rksiva
Try this, $ tr '|' '\n' < infile| awk...
Try this,


$ tr '|' '\n' < infile| awk '/TIME_LAST_VISITED_BY_MD/{print NR}'
1,174
Posted By Rksiva
Then use the below one, will provide u the...
Then use the below one, will provide u the desired output as you needed.


sed 's/\~/\"~\"/g;s/^/\"/g;s/$/\"/g' filename
26,105
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...
Forum: AIX 01-05-2012
24,488
Posted By Rksiva
Use -type option in find command f --->...
Use -type option in find command

f ---> file
d ---> directory
1,174
Posted By Rksiva
Try this, sed...
Try this,

sed 's/\~/\"~\"/g;s/\"\"//g;s/^/\"/g;s/$/\"/g' filename
947
Posted By Rksiva
Try this, echo "Enter a word" read word ...
Try this,

echo "Enter a word"
read word
echo "You enterted $word"
1,165
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
8,870
Posted By Rksiva
Try this, grep 'REG ADD...
Try this,


grep 'REG ADD \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" \/v NoDrives \/t REG_DWORD \/d 4 \/f' filename
Forum: AIX 01-05-2012
24,488
Posted By Rksiva
Try this, find . -user root -perm 777
Try this,

find . -user root -perm 777
1,036
Posted By Rksiva
Try this, I hope this will help u. while...
Try this, I hope this will help u.


while read line
do
grep "$line" data.txt > /dev/null
if [ $? -eq 0 ]
then
echo "$line number present in data file"
else
...
21,542
Posted By Rksiva
Try this, it will show the total cpu utilization...
Try this, it will show the total cpu utilization used by DBA user id.


prstat -a 1 1 | grep <dba group> | tail -1
26,105
Posted By Rksiva
Fine, its seems that you are using Sybase DB then...
Fine, its seems that you are using Sybase DB then this would be the right syntax to create procedure (as already done by u)


create proc testing
as
return 1


As suggested by you, using...
Forum: HP-UX 01-05-2012
2,324
Posted By Rksiva
Try this by using sendmail, ...
Try this by using sendmail,


FROM=test@gmail.com
MailTo=temp@gmail.com
SUBJECT="Test Mail"
CONTENT="Test"
(
echo "Subject: $SUBJECT"
echo "From: $FROM"
echo "To: $MailTo"
echo...
26,105
Posted By Rksiva
Can u just modify the procedure as below and try...
Can u just modify the procedure as below and try once,


create procedure testing
returning integer;
return 1;
end;
Showing results 1 to 25 of 75

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