Search Results

Search: Posts Made By: beezy
11,051
Posted By beezy
Hi Alister, thanks for your reply. You mean ssh...
Hi Alister,
thanks for your reply. You mean ssh -n $line..... ?


Thanks .. It works now. :o
11,051
Posted By beezy
Hi all, I have another problem.. I do...
Hi all,

I have another problem..
I do some changes on my code

My code is something like this..

#!/usr/bin/sh
file2copy=$1
foldername=$2
grep -v '^#' servers.cfg > valid_servers...
13,456
Posted By beezy
Checking files in remote server and decide to copy file or not
Hi there,
I have a problem in my script,
I need to check whether file exists in remote server or not,
if the file exists, then stop copy
else copy the file to the server..

my code is...
11,051
Posted By beezy
Hi, hmm.. I think u guys misunderstanding.....
Hi,

hmm.. I think u guys misunderstanding..
I'm trying not only that way on my post..
I post before I search for solution..
and my post is the latest tried. so I decide to post that as my...
11,051
Posted By beezy
Yes. I did try the same thing before. Still the...
Yes. I did try the same thing before.
Still the same. :o
11,051
Posted By beezy
Hi Ranga, Thanks for your reply, I had tried...
Hi Ranga,
Thanks for your reply,
I had tried this before I post my problem here, too bad it doesn't skip any # in front of the line. :(
11,051
Posted By beezy
Hi hanson44, Thanks for the remind :)
Hi hanson44,

Thanks for the remind :)
11,051
Posted By beezy
this the output, it just simply run one more...
this the output,
it just simply run one more time without bring anything from the file.
and assume the username2@hostname.com is the last line of the file.


file2put=mesg.txt
dirname=
+ [...
11,051
Posted By beezy
Hi hanson44, Thanks for your reply. It...
Hi hanson44,

Thanks for your reply.
It really skip the line with #..
Really thanks! :")

---------- Post updated at 03:06 PM ---------- Previous update was at 02:55 PM ----------

Hi,
...
11,051
Posted By beezy
Read file and skip the line starting with #
Hi all,
I'm new in unix. Need some help here.

I have a file called server.cfg which contains the servers name, if I don't want to run on that server, I'll put a "#" infront it.
...
Showing results 1 to 10 of 10

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