Search Results

Search: Posts Made By: Nsharma3006
1,117
Posted By Nsharma3006
I need to search for a file and if file found...
I need to search for a file and if file found need to search a string from it. But from another host
1,117
Posted By Nsharma3006
Can we connect another server
Assume I am on hostname 111
and want to connect hostname 222 in order to check some file being connected with 111

can this be possible, being on one hostname can we see file of another host and...
1,017
Posted By Nsharma3006
thanks for sharing
thanks for sharing
1,017
Posted By Nsharma3006
Not able to understand this output
I am hitting this command:


dvlna021-(/cm/ims/dev/gds-scheduler/10/app/Software/active/Soft/conf)->ls -lrt gds_userenv_*


This is the output

lrwxrwxrwx 1 aimse was 65 Jul 31 12:56...
8,054
Posted By Nsharma3006
Thanks for sharing, I will definetly read.
Thanks for sharing, I will definetly read.
8,054
Posted By Nsharma3006
I like to run my script ./script.ksh 01 ...
I like to run my script

./script.ksh 01


and like to read this 01 value in the script inside and use it for further logic.

I tried writing like this

#!/bin/sh
$#
echo $#
read $#...
981
Posted By Nsharma3006
Looping Logic, Need to implement
I need to implement a looping logic.


If [ Test = 1] then
Go to /path1/file*


Get all the filename starting with file* and store it in a array
count file number and store it in variable...
8,054
Posted By Nsharma3006
I have not started yet because I dont know how to...
I have not started yet because I dont know how to start for writing command line argument.

I am searching if I can find the code for the same.

---------- Post updated at 08:37 PM ----------...
1,749
Posted By Nsharma3006
How to pass command line argument in shell script?
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like


invalid option - - should pass the...
8,054
Posted By Nsharma3006
How to pass command line argument in shell script?
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like

invalid option - - should pass the...
Forum: UNIX and Linux Applications 08-28-2013
1,345
Posted By Nsharma3006
From past 10 days my one job is taking lots of time
One of my job is taking long running time.
I need to identify from the unix log file can you please help how to troubleshoot.
6,272
Posted By Nsharma3006
Along with above this is another code line, which...
Along with above this is another code line, which I am unabel to understood, because there is no rc_1 is define in the script above..


rc_1=$?
echo 'Return Code Basename :' $rc_1
echo...
6,272
Posted By Nsharma3006
Thanks alot ---------- Post updated at 02:47...
Thanks alot

---------- Post updated at 02:47 PM ---------- Previous update was at 02:41 PM ----------

what does this code mean
Any help appreciate...

base_file=$(basename $latest_file)
6,272
Posted By Nsharma3006
File watcher script
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
then
echo "file found"
exit 0
else
echo "file not found"
exit 46
fi


So I basically looking to understand the
if...
2,256
Posted By Nsharma3006
Loop logic, enter into respective IF as per enter input file name
have three big data file, however I just need to see the mentioned below one line form the all the file which has SERVER_CONNECTION Value
File 1
export...
5,813
Posted By Nsharma3006
Requirement is to check file and enter in the loop accordingly
however I just need to see the mentioned below one line form the all the file which has SERVER_CONNECTION Value
5,813
Posted By Nsharma3006
5,813
Posted By Nsharma3006
Thanks Alot bakunin my this above requirement is...
Thanks Alot bakunin my this above requirement is working fine with all your valuable input.
5,813
Posted By Nsharma3006
Do you have any idea how to capture value
Do you have any idea how to capture value
5,813
Posted By Nsharma3006
As per your suggestion I have changed the script...
As per your suggestion I have changed the script :


[CODE]#!/bin/sh
set -xv

___________________________
This is the detailed output which I getting:

[CODE]h=dvlna002

b=SERVER
+...
5,813
Posted By Nsharma3006
This too is not working. My basic intention...
This too is not working.

My basic intention is anyhow compare two alphanumeric value.
If that can work thn my half of the job will be done
5,813
Posted By Nsharma3006
I want to compare to alphanumeric value in a unix shell script.
[CODE]#!/bin/sh

b= SERVER
if ["$a" == "$h"];
then
echo "hostname $a is same"
____________________________
Showing results 1 to 22 of 22

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