[GRLUG] Remote file conversion

Michael Mol mikemol at gmail.com
Wed Jul 16 12:01:29 EDT 2008


On Wed, Jul 16, 2008 at 11:55 AM, Steve Romanow <slestak989 at gmail.com> wrote:
> Can anyone confirm if they've seen anything like this work.
>
> I have a pdf created by a process on aix.  I need to programmaticly create a toc for the 1500 page document.
>
> Pdftotext (from the xpdf package) works fine for ripping the pdf to text, then with a couple of greps, I have the info needed.
>
> The thing I am trying to figure out is how I can use ssh to remotely use pdftotext on this file from aix.
>
> Installing xpdf on aix is not really an option.  I would like to embed the remote execution call in another program running on the aix box.  He goal is to remove manual steps from this table of contents generation.

If your AIX box is box alpha, and you have a script that does the work
on box beta, you can do something like this:

alpha$ ssh beta scriptname.sh
alpha$ scp beta:/path/to/remote/file/output.pdf /path/to/local/destination

You'd need public key authentication set up, to avoid your script on
AIX prompting for a password each time.


-- 
:wq


More information about the grlug mailing list