Search Results

Search: Posts Made By: lucaswoods
5,458
Posted By lucaswoods
perl -ne 'while(<>) {if(/^cool/) { $x = $_; }}...
perl -ne 'while(<>) {if(/^cool/) { $x = $_; }} print $x;'
10,779
Posted By lucaswoods
The answer provided by Tytalus fits your needs. ...
The answer provided by Tytalus fits your needs.



The STDOUT is piped, and then in the last command it is redirected. There is no step in this command string that will print to the screen.
...
4,154
Posted By lucaswoods
I don't believe this will work quite how you want...
I don't believe this will work quite how you want it too.

By using the command option, you are limiting that key to the specified commands, including the shell. To allow it you would need to add...
7,341
Posted By lucaswoods
You could make the files from the other systems...
You could make the files from the other systems available on a single system by exporting them via NFS.

However you must realise that any .cgi scripts will be executed on the single server. There...
6,757
Posted By lucaswoods
That is because you are reading the .last_date...
That is because you are reading the .last_date from your current working directory, then changing to /web/.hhome/mysql.backup/data before writing out the variable.

I'm guessing if you check...
23,336
Posted By lucaswoods
He means files prepended with a period, .hidden...
He means files prepended with a period, .hidden for example.

You can use a regex to exclude these files and directories:

find . \( ! -regex '.*/\..*' \)
2,287
Posted By lucaswoods
I'm not 100% sure with AIX, but it's probably...
I'm not 100% sure with AIX, but it's probably /var/spool/mqueue. This is where the temporary files live for the outgoing mail queue.

Actually I just did a Google search and here's the AIX man page...
6,757
Posted By lucaswoods
At the top of the script: read LASTDATE <...
At the top of the script:
read LASTDATE < .last_date

During the FTP session:
del $LASTDATE.backup.sql.enc.gz

After the FTP session:
echo $DATE > .last_date

Of course you will need some...
19,760
Posted By lucaswoods
stat -c %U filename
stat -c %U filename
Showing results 1 to 9 of 9

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