I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time
for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or
on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news,
I hope these links will serve you well.
HI!
I want execute the command:
$cmd="tar -cvvf logswitch.tar `find *.log* -mtime +5` --remove-files";
print $ssh "$cmd\r";
only if
find *.log* -mtime +5
find some files.
Thanks in advance.
Posted on 2007-02-14 10:38:47-08
by rgiersigin response to 4328
Re: execute command only if
HI! I want execute the command: $cmd="tar -cvvf logswitch.tar `find *.log* -mtime +5` --remove-files"; print $ssh "$cmd\r"; only if find *.log* -mtime +5 find some files. Thanks in advance.
I would suggest you use the 'if' construct for that...