Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rsync in Qsh

382 views
Skip to first unread message

Pete

unread,
May 10, 2002, 3:51:05 PM5/10/02
to
I would like to know if anyone could share information regarding
running rsync in the PASE environment on an AS/400. I was hoping to be
able to run a CL program from the scheduler periodically during the
day and write directories from an NT 4.0 server to an IFS file on the
400. I have the PASE option on our 400, but I have zero experience
with AIX, so any direction and CL code samples anyone could give me
would be greatly appreciated. Thanks

George Timms

unread,
May 10, 2002, 5:37:54 PM5/10/02
to
"Pete" <ph...@ci.aurora.il.us> wrote in message
news:f5dfb1f2.02051...@posting.google.com...

Your subject mentions Qsh (Qshell) but your note talks about OS/400 PASE.
They aren't the same thing (although the interoperability is pretty good
between them).

I can't find rsync in OS/400 or in AIX documentation. What is it?

--
George Timms
IBM Rochester


Pete

unread,
May 11, 2002, 7:35:41 AM5/11/02
to
Apparently it is an open source file transfer utility that is
available in an AIX 4.3 version. There have been a couple of postings
in this group that indicate some have succesfully used it in
NT/iSeries environments. A search of Google gives a ton of hits. I
went to http://www.rsync.org/ and read a little bit and downloaded the
AIX binaries, but I need to read up on the command sytax and find out
how to run it in a CL program. Any advice?

George Timms

unread,
May 11, 2002, 11:00:27 AM5/11/02
to
"Pete" <ph...@ci.aurora.il.us> wrote in message
news:f5dfb1f2.02051...@posting.google.com...

I don't know whether rsync will work, but go ahead and give it a try. You
can invoke any OS/400 PASE program from CL by calling program QP2SHELL. The
first parameter is the pathname to the program, and any additional
parameters are passed as argument strings to main(). For example:

CALL QP2SHELL('/yourdir/rsync' '-xyz' 'arg2')

You'll probably have to quote just about every parameter to avoid CL syntax
errors, conversion to uppercase, and converting numerics to packed decimal.

P.S. There is an OS/400 PASE newsgroup that my development team follows at
news://news.software.ibm.com/ibm.software.iseries.pase

0 new messages