Search Results

Search: Posts Made By: Percy
78,628
Posted By Percy
Make sure you're getting your syntax correct. ...
Make sure you're getting your syntax correct.

scp /file/location/of/test.sh 102.19.23.122@:/file/location/to/copy/to

And also - make sure you actually can reach 102.19.23.122 :)
13,621
Posted By Percy
Think there is an su log you can look at...
Think there is an su log you can look at (assuming you have su logging switched on).

/var/log/sulog or /var/adm/sulog....

man sulog?
11,628
Posted By Percy
Another explanation to accompany. I wrote to a...
Another explanation to accompany. I wrote to a work colleague which might find useful:
--------------
Basically, an awk script is this:
------------
BEGIN{}
/<search string>/
{ <put your...
94,911
Posted By Percy
Generally, I think its: Create a tar file: ...
Generally, I think its:

Create a tar file: tar cvf <tar.filename> <files.to.tar.up>
Extract a tar file: tar xvf <tar.filename>
Check the contents of a tar file: tar tvf <tar.filename>
4,564
Posted By Percy
Perl is banned around here by the powers that be....
Perl is banned around here by the powers that be.

As for the sed command - yes, this would be good, if I fancy messing around with a 2048 char hashcode :)
4,564
Posted By Percy
Thank you for this. There is still the...
Thank you for this.

There is still the slight potential of missing additions to the logfile between steps 2c and 3 - and its mainly due to how fast I can type "mv file file2" - in a panic, I...
4,564
Posted By Percy
OK cheers guys! A bit more info: What...
OK cheers guys!

A bit more info:

What exactly I want to do is this:

This is a big file, full of filenames and a hashcode for each filename.
each line in the file is
filename, date,...
4,564
Posted By Percy
"vi"-ing a constantly updated file
Hi,

A bit of a dumb question here. Sorry folks.

Suppose I have this file which is being updated at irregular intervals (a few seconds, a few minutes, who knows) by a background process.

I...
91,173
Posted By Percy
dependant on the terminal software that you're...
dependant on the terminal software that you're using, quite a few have an option somewhere that you can change to show the number of lines of 'history'
PuTTY for example.

Alternatively, if you...
78,628
Posted By Percy
files.txt contains a list of every file you want...
files.txt contains a list of every file you want to copy.


for line in files.txt
do
cp $line server:$line
done

You get the gist...

...oh - unless its scp or something and then you'd...
17,881
Posted By Percy
You could configure it to use SSH keys instead? ...
You could configure it to use SSH keys instead?
So when it logs on, it authenticates using your ssh key rather than throwing up a prompt for a password?

Perhaps something like Putty and its suite...
4,592
Posted By Percy
Sounds like some 'grep', 'sort' and 'cat' action...
Sounds like some 'grep', 'sort' and 'cat' action to me.... :p
21,280
Posted By Percy
Well, I tried out the awk - and thought it might...
Well, I tried out the awk - and thought it might be a little easier to read (just to understand it better) if you try it like this:

1) create "search.awk" and inside, put this:
BEGIN {...
Showing results 1 to 13 of 13

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