10-22-2012
On my linux/mawk system it will compare sizes OK. If it doesn't on yours, force it to be numerical like$5+0 > Ar[$9]+0. For a third rule, you copy the entire comparing line and invert the comparison. Don't forget to change rule 2 to rule 3 in the print cmd.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
2. Shell Programming and Scripting
Hello,
I am new to unix , and I need to create a shell sciprt which helps me FTPing file from LAn to Unix box.
These files r then processed using Perl script and put in a database.
I also need to log the entire process of all the above methods in a log file in the same shell script.
Like ,... (2 Replies)
Discussion started by: agarwalniru
2 Replies
3. Shell Programming and Scripting
hi,
I have one file located in ftp.I want to place that file in different ftp location.
Up to now i am doing it manually using get command and copying that file in to my local system and then putting that file in different ftp using put command.
now i want to automate that using shell... (1 Reply)
Discussion started by: prasee
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
5. Shell Programming and Scripting
Hi,
I am getting error when i am deleting file from FTP and also transferring file from local to FTP server.
I am getting 221 error. I am getting this error some time only.
Some time the existing file from FTP is deleted and file from local directory is transferred to FTP server.
... (2 Replies)
Discussion started by: praka
2 Replies
6. Shell Programming and Scripting
Hi all..
The following set of statements is used in a shell script to ftp a file to a remote machine
I want to redirect the ftp messages thrown by the first ftp statement to a log file. As you can see there is a logic downstream to decide if the ftp was a success or not. But i am not... (5 Replies)
Discussion started by: hareeshkumaru
5 Replies
7. Shell Programming and Scripting
Hi,
I need to create a script that checks if a file exists on an offsite server
which only has ftp enabled. I was originally going to use perls Net::FTP
class but the client does not have perl installed nor wants it.
So, I have to use a shell script which logs into the server, then ... (1 Reply)
Discussion started by: gseyforth
1 Replies
8. Shell Programming and Scripting
Hi Guys
I did a forum search for "ftp scripts" Looked at 8 pages and didnt see anything that would help. Most seem to be logging into a ftp server and transfering files.
What I need to do is login to a FTP server. Goto a folder and list it so it showes newest files first. It would be nice to... (4 Replies)
Discussion started by: voorhees1979
4 Replies
9. HP-UX
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies
10. Solaris
OS: Solaris 9
Configuration /etc/syslog.conf
daemon.debug
/etc/inetd.conf
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -A -l -d
Found the ftp.log only generate those entries from other servers/hosts.
Can we trace on all ftp entries either from/to the server?
... (6 Replies)
Discussion started by: KhawHL
6 Replies
LEARN ABOUT DEBIAN
path::dispatcher::rule
Path::Dispatcher::Rule(3pm) User Contributed Perl Documentation Path::Dispatcher::Rule(3pm)
NAME
Path::Dispatcher::Rule - predicate and codeblock
SYNOPSIS
my $rule = Path::Dispatcher::Rule::Regex->new(
regex => qr/^quit/,
block => sub { die "Program terminated by user.
" },
);
$rule->match("die"); # undef, because "die" !~ /^quit/
my $match = $rule->match("quit"); # creates a Path::Dispatcher::Match
$match->run; # exits the program
DESCRIPTION
A rule has a predicate and an optional codeblock. Rules can be matched (which checks the predicate against the path) and they can be ran
(which invokes the codeblock).
This class is not meant to be instantiated directly, because there is no predicate matching function. Instead use one of the subclasses
such as Path::Dispatcher::Rule::Tokens.
ATTRIBUTES
block
An optional block of code to be run. Please use the "run" method instead of invoking this attribute directly.
prefix
A boolean indicating whether this rule can match a prefix of a path. If false, then the predicate must match the entire path. One use-case
is that you may want a catch-all rule that matches anything beginning with the token "ticket". The unmatched, latter part of the path will
be available in the match object.
METHODS
match path -> match
Takes a path and returns a Path::Dispatcher::Match object if it matched the predicate, otherwise "undef". The match object contains
information about the match, such as the results (e.g. for regex, a list of the captured variables), the "leftover" path if "prefix"
matching was used, etc.
run
Runs the rule's codeblock. If none is present, it throws an exception.
perl v5.12.4 2011-08-30 Path::Dispatcher::Rule(3pm)