Search Results

Search: Posts Made By: lorcan
1,576
Posted By lorcan
chk this out...
chk this out https://www.unix.com/shell-programming-scripting/29023-how-setup-ssh-between-4-hosts.html
1,576
Posted By lorcan
Please check your $HOME if you dont see .ssh dir...
Please check your $HOME if you dont see .ssh dir then it means you dont have ssh setup.
1,576
Posted By lorcan
please check if ssh is setup.
please check if ssh is setup.
988
Posted By lorcan
cat file* | sort | uniq -c | head -2 If you...
cat file* | sort | uniq -c | head -2

If you dont want you can remove the count
3,306
Posted By lorcan
Can you post the errors that you face? The...
Can you post the errors that you face?
The script looks fine assuming your 5th line as an comment line.
3,696
Posted By lorcan
Well i think i should have explained more. The...
Well i think i should have explained more. The above code checks only for the START/END pattern. But the pattern prior is also important.

In the below case the awk will not return any rows. But it...
3,696
Posted By lorcan
Format the Output
Hi-
Objective of the task is to print the lines which doesnt have a END statement corresponding to a START statement.

Let me know if anyone has a better way of doing is.

My Thoughts

Have 2...
3,748
Posted By lorcan
Try this
awk -F" " '{ if ($1 ~ /\./ ){print $0 }}' yourinputfile
1,829
Posted By lorcan
Can you give a format of the another file from...
Can you give a format of the another file from which the values are grep'ed and entered like the above. And the input file as well.
26,309
Posted By lorcan
No its not possible.
No its not possible.
48,243
Posted By lorcan
if [[ -n "$VARIABLE" && $VARIABLE == "project"...
if [[ -n "$VARIABLE" && $VARIABLE == "project" ]]
5,641
Posted By lorcan
Got it !!!
check_ssh()
{
ssh -q -o "BatchMode=yes" $1@$2 "exit" < /dev/null
[ $? -ne "0" ] && return 1 || return 0
}

INP_FILE=Config.ini

for line in $(grep -v "^#" $INP_FILE | cut...
5,641
Posted By lorcan
I want to check if we can ssh to a remote host...
I want to check if we can ssh to a remote host and execute our statements. This is just a function block which checks for whether we can ssh into a server before executing our statements.

I just...
5,641
Posted By lorcan
Nmap option
I will check that option, any other ??
5,641
Posted By lorcan
SSH Connectivity script
Hi all,

I have developed a script to list out the servers that is not able to connect to the remote host.

The problem with this script is it, if the remote server ask for a password it gets...
17,156
Posted By lorcan
Try sed "s/\*//g" < input_file >...
Try

sed "s/\*//g" < input_file > output_file
8,071
Posted By lorcan
Redirecting to Error File
Hi-

I want to redirect the output of the echo to the standard error file. We require this because, when we try to scp a file from a source server to a target server we get an error code 1. Later...
2,647
Posted By lorcan
Try, find . ! -mtime +1 ! -mtime 1 ...
Try,

find . ! -mtime +1 ! -mtime 1

After this use the exec option to move the matching files to your backup dir
4,015
Posted By lorcan
Try some things like #!/bin/ksh ...
Try some things like

#!/bin/ksh

INPUT_DIR="/home/"
for file in $(ls $INPUT_DIR/*-o.pdf)
do
new_file=$(echo ${file%%-o.pdf})
new_file=${new_file}.pdf
mv $file...
13,188
Posted By lorcan
Try, ls -a
Try,

ls -a
25,195
Posted By lorcan
You can save the output of the date command (date...
You can save the output of the date command (date "+%d%m%y") to a variable and append it to your log file name.

Hope this is what you were looking for.
Forum: Programming 08-24-2007
2,009
Posted By lorcan
You might have to explain the logic again to the...
You might have to explain the logic again to the group, the giving the code wouldn't help. :)
10,482
Posted By lorcan
Perderabo, thats exactly what i was trying to...
Perderabo, thats exactly what i was trying to say.

I was stressing that there is limit of the direct sub-directories in a directory which is equivalent to MAXLINK.

I haven't metioned any limit...
10,482
Posted By lorcan
I just wanted to tell about the number of...
I just wanted to tell about the number of links/directories in a directory.
If you cross a certain limit of dir in a folder you would be getting a error like "Too Many Links" in HP-UX
10,482
Posted By lorcan
There is a limit,i faced an issue in HP-UX so not...
There is a limit,i faced an issue in HP-UX so not sure if it holds good for other UNIX flavours.

The Maximum no. of directories or links is hardcorded in the file param.h header file and the key...
Showing results 1 to 25 of 218

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