Search Results

Search: Posts Made By: psthariharan
1,109
Posted By psthariharan
thanks to both of you
thanks to both of you
1,109
Posted By psthariharan
Compare 2 Files
Hi

requirement : I have file a and b. need to compare both are matching.

FIle a
----
/ct/mr/test/bin/b
/ct/mr/test/bin/CheckEmpty
/ct/mr/test/bin/ChkFile2

File b
---...
1,325
Posted By psthariharan
Hi Showing err Syntax error at line 4...
Hi

Showing err

Syntax error at line 4 : `(' is not expected

---------- Post updated at 05:18 AM ---------- Previous update was at 05:03 AM ----------

Hi


Idea is to when the...
1,325
Posted By psthariharan
Connect server2 from server1 to compare files
Hi ALL,

Requirement:Connect server2 from server1 and get the list of files generate on currentdate .

Basically i need to check the files in server1 and server2 on currrent date is equal on...
1,793
Posted By psthariharan
thanks for the advice
thanks for the advice
1,793
Posted By psthariharan
hi you mean to say after ncm_AdjCob.pl are...
hi
you mean to say after ncm_AdjCob.pl are the arguments for the perl file
1,793
Posted By psthariharan
Explanation reqd for the Unix file
Hi,

I have a unix file with the following contents



#/usr/bin/sh
cd /ct/mr/prod/bin

ncm_AdjCob.pl -a /ct/mr/prod/wg/applog_AdjDev.log
-c...
18,929
Posted By psthariharan
the output are which date /usr/bin/date ...
the output are

which date
/usr/bin/date

which ls
/usr/bin/ls
18,929
Posted By psthariharan
i execute it from root ls -l /sbin/date ...
i execute it from root

ls -l /sbin/date not found


ls -l /usr/sbin/date not found
18,929
Posted By psthariharan
yes. thats correct. but one of my perl files is...
yes. thats correct. but one of my perl files is having the code.

#!/usr/bin/perl -w
local ($date) = `/sbin/date "+%D %X" ` ;
print $date

while execute this code gives error
sh: /sbin/date:...
18,929
Posted By psthariharan
hi i added / still same error is coming. in...
hi
i added / still same error is coming.
in sbin folder date command is working.
but above script is not working
18,929
Posted By psthariharan
date command not working
hi


#!usr/bin/perl -w
local ($date) = `/sbin/date "+%D %X" ` ;
print $date


when i run this in ksh shell it is giving the below error
sh: /sbin/date: not found

but same code is...
2,091
Posted By psthariharan
yes. it's working great. thanks
yes. it's working great. thanks
2,091
Posted By psthariharan
the full code #!/usr/bin/sh # # ...
the full code

#!/usr/bin/sh
#
# BC2M0010_CheckDir - Verify if transmission files exist
#
# Revisions:
#
# 11/08/01 created for second midday batch
cd /cnt/mgr/test/bin
trap...
2,091
Posted By psthariharan
i tried both way as pkbali suggested still not...
i tried both way as pkbali suggested
still not found error is coming
when i put ./ncn_CheckDir.pl it is giving me
BC_CheckDir[11]: ./ncn_CheckDir.pl: not found

when hard coded the path then...
2,091
Posted By psthariharan
sorry guys it is ncn_CheckDir.pl -a only ...
sorry guys

it is ncn_CheckDir.pl -a only
#!/usr/bin/sh
'exit 255' USR1
ncn_CheckDir.pl -a
/cnt/mgr/test/working/applog_CheckDir.log -c
/cnt/mgr/test/lib/config/bp_CheckDir.conf -s ...
2,091
Posted By psthariharan
Explanation reqd
Hi,
i have a script of following content
#!/usr/bin/sh
'exit 255' USR1
ncm_CheckDir.pl -a
/cnt/mgr/test/working/applog_CheckDir.log -c
/cnt/mgr/test/lib/config/bp_CheckDir.conf -s ...
Showing results 1 to 17 of 17

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