Search Results

Search: Posts Made By: Phil_FL
9,491
Posted By Phil_FL
ok so how to find files ? with the command:...
ok so how to find files ?
with the command: find
option for the command: -mtime
find is quite powerful you even have an option to delete
9,491
Posted By Phil_FL
The solution lies with find and the option -mtime...
The solution lies with find and the option -mtime
-mtime +60 for instance
30,018
Posted By Phil_FL
You could try: use Net::FTP; my...
You could try:


use Net::FTP;

my @serverip=qw/serverip1 serverip2/;
$fileextension="*.txt";

foreach my $serverip(@serverip){
my $ftp = Net::FTP->new($serverip,Debug=>0)
or die "can't...
3,423
Posted By Phil_FL
The reply of thegeek is correct, I just want to...
The reply of thegeek is correct, I just want to add some projects that helps to manage clusters or multiple servers to execute the same commands across multiple servers:

Multixterm...
13,070
Posted By Phil_FL
Have you searched the forum ? look for uuencode...
Have you searched the forum ?
look for uuencode
read this for instance (https://www.unix.com/unix-dummies-questions-answers/28613-sending-attachments-mail.html)

As you said you basically just...
6,151
Posted By Phil_FL
what does your system give you when you type: ...
what does your system give you when you type:

date --date="yesterday" '+%Y%m%d'
and/or
DATE=$(date -d yesterday +"%Y%m%d")
echo $DATE


?

the command date GNU at least on 6.9 works with...
6,151
Posted By Phil_FL
On the first day of the month it will return 00
On the first day of the month it will return 00
Forum: Ubuntu 10-05-2009
6,833
Posted By Phil_FL
Without much activity the connection drop. on...
Without much activity the connection drop.
on the client side you could try to
ssh -o ServerAliveInterval=2

If it works you can set your ServerAliveInternal to whatever works (2 5 10 100 ?) in...
6,151
Posted By Phil_FL
To get yesterday date with date: date...
To get yesterday date with date:

date --date="yesterday" '+%Y%m%d'

in your script try:

DATE=`date --date="yesterday" '+%Y%m%d'`
1,868
Posted By Phil_FL
sed s/"PP= 4"$/"PP= 2"/ between the " "...
sed s/"PP= 4"$/"PP= 2"/

between the " " whatever you want to replace

(edit: added the $
after the varontron remarks, varontron is right without it will change all PP= 4[whatever])
1,556
Posted By Phil_FL
Be more specific, give an example, the sed -e...
Be more specific, give an example,
the sed -e will work with everything have you tried it ?
3,022
Posted By Phil_FL
n=1 while [ $n -le 5000 ] do cp...
n=1
while [ $n -le 5000 ]
do
cp a.txt ../a$n.txt
n=$(( n+1 ))
done


../a$n.txt will copy on the parent directory where the script is executed, put whatever you want as a full...
1,556
Posted By Phil_FL
sed -e 's/ /_/g' -e 's/:/_/g' works only if...
sed -e 's/ /_/g' -e 's/:/_/g'

works only if you stay in BST for GMT-7 for instance you may want to add another -e 's/-/_/g'

http://www.grymoire.com/Unix/Sed.html#uh-13
2,053
Posted By Phil_FL
Working fine here $more tmpadi.xml ...
Working fine here

$more tmpadi.xml
<Policy id="Policy_1">
<PolNumber>101101</PolNumber>
</Policy>
5,053
Posted By Phil_FL
Based on the only information you are giving, I...
Based on the only information you are giving, I will try to look for a problem with environment variable(s) not set when cron runs it.
If you have no idea which one is causing problem, a wild guess...
100,852
Posted By Phil_FL
I usually compute: $date --date="yesterday" ...
I usually compute: $date --date="yesterday" works with tomorrow too.
Showing results 1 to 16 of 16

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