Re: [p3rtp] Pinnacle 9.2 PDF export to Mosaiq

543 views
Skip to first unread message

Olivier Blasi

unread,
Sep 4, 2012, 8:12:02 PM9/4/12
to pinnacl...@googlegroups.com
Laura,

This can be done with the FTP command in windows. Here is a small bit modified from some previous transfer scripts I wrote and should be a good starting point for you to create your own script.  It should theoretically copy all the files in a known pinnacle folder to a known folder in your mosaiq eScan directory.

Step 1:  
Map a network drive (http://www.wintuts.com/Map-Network-Drive) to your mosaiq eScan folder.  In my case I mapped \\server_name\mosaiq_app\eScan\Dosimetry\ to W:\Dosimetry

Step2:
Create a file in notepad with the following text and save it as the file name  "transfer.ftp"

open 111.1.1.1   // In your case this would be whatever the pinnacle FTP server IP address is
user p3rtp         // Your pinnacle username
p3rtp                // Your pinnacle password
lcd W:\Dosimetry        // This is the drive that you mapped to and where you will be copying the files over to
cd /home/p3reports/   // This would be the location on the pinnacle server where the files are stored that you want to copy.
prompt  // Keeps you from getting asked questions about the transfer
mget *  // Grabs all the files in the folder and copies them to the lcd (local current directory)
bye      // quits the ftp program

Step 3:
Now make another notepad file (this will be the easy one button press script.) with the following text and save it as a batch file easy_one_button.bat

ftp -n -s:"C:\Documents and Settings\oblasi\Desktop\transfer.ftp"    //The location is just where your transfer.ftp  file is saved.  In my case it is the desktop



Tips:
Be sure to delete out all the extra commented  "// text"
The first time running open the command prompt window and run the easy_one_button.bat from there so that you can read the text if something is going wrong. 

Hope this helps.  Have fun scripting.

Olivier Blasi



On Tue, Sep 4, 2012 at 12:16 PM, Laura <ljon...@gmail.com> wrote:
> We are happy to have 9.2 and PDF running, but the FTP process is tedious
> with many steps. . . Any hints on a faster, easier "one button" way to send these PDF files to
> our escan drive?...
> Laura O'Neill


Earner Benjamin (ROYAL FREE LONDON NHS FOUNDATION TRUST)

unread,
Sep 5, 2012, 4:29:09 AM9/5/12
to pinnacl...@googlegroups.com

I'm fairly sure you could get what you want without any scripts at all and no FTP server, although I can't be sure I don't use Mosaiq!

 

From the sound of it I think you could just map the "escan" drive using samba, I'm fairly sure that the Solaris OS Pinnacle sits on supports this as it appears to have smbclient. Then just link your PDF report folder to this mapped drive, then every time you create a PDF it would get saved straight to the mapped escan drive. Or maybe I'm missing something?

 

Ben

 

From: pinnacl...@googlegroups.com [mailto:pinnacl...@googlegroups.com] On Behalf Of Laura
Sent: 04 September 2012 20:17
To: pinnacl...@googlegroups.com
Subject: [p3rtp] Pinnacle 9.2 PDF export to Mosaiq

 

We are happy to have 9.2 and PDF running, but the FTP process is tedious with many steps. We are using Filezilla because we have it set up already to transfer our IMRT QA files.

Any hints on a faster, easier "one button" way to send these PDF files to our escan drive? A script maybe for doing the PDF within Pinnacle/Unix?

If this has been asked - please forgive the repeat. I didn't find it during my search of the user group, and have only logged on for the first time today so haven't explored the group much.

Laura O'Neill

--
You received this message because you are subscribed to the Google
Groups "pinnacle3-users" group.
To post to this group, send email to pinnacl...@googlegroups.com
To subscribe to this group, send email to
pinnacle3-us...@googlegroups.com
To unsubscribe from this group, send email to
pinnacle3-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pinnacle3-users?hl=en


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************

Wyatt Smith

unread,
Sep 5, 2012, 9:50:26 AM9/5/12
to pinnacl...@googlegroups.com

I had thought the same thing until I discovered what the “missing” piece was.

 

Although, Pinnacle’s Solaris OS contains the smbclient package, the kernel it uses has no support for the smbfs package or the cifs-utils package.  The lack of kernel support is the reason why these filesystems cannot be mounted locally.  The smbclient package is included as it a user-space FTP-like client which does not require any kernel support. 

 

The only way to mount a remote filesystem to the local drive is with a NFS mount.  This is not a problem for Windows7 as it natively supports NFS, but older OS’s will require (SFU) Windows Services for Unix to be installed and running.

Earner Benjamin (ROYAL FREE LONDON NHS FOUNDATION TRUST)

unread,
Sep 5, 2012, 10:33:49 AM9/5/12
to pinnacl...@googlegroups.com

I see, I thought it would be too easy! I guess you could always create a script on the Pinnacle side to use smbclient to push the files when you use the Pinnacle PDF script to the escan folder. (You could call this script at the end of the Pinnacle PDF script so no extra button pressing required!) Essentially the script would look similar to the FTP script already suggested.

 

Or can you change your escan folder location? I know for definite that Solaris can make Samba shares, so if you could change your escan directory to point to a samba share on Pinnacle which also happens to be your PDF creation directory. Whether this will work or be practical will depend on how you use Mosaiq/its limitations…

 

 

From: pinnacl...@googlegroups.com [mailto:pinnacl...@googlegroups.com] On Behalf Of Wyatt Smith
Sent: 05 September 2012 14:50
To: pinnacl...@googlegroups.com
Subject: RE: [p3rtp] Pinnacle 9.2 PDF export to Mosaiq

 

I had thought the same thing until I discovered what the “missing” piece was.

 

Although, Pinnacle’s Solaris OS contains the smbclient package, the kernel it uses has no support for the smbfs package or the cifs-utils package.  The lack of kernel support is the reason why these filesystems cannot be mounted locally.  The smbclient package is included as it a user-space FTP-like client which does not require any kernel support. 

 

The only way to mount a remote filesystem to the local drive is with a NFS mount.  This is not a problem for Windows7 as it natively supports NFS, but older OS’s will require (SFU) Windows Services for Unix to be installed and running.

 

 

From: pinnacl...@googlegroups.com [mailto:pinnacl...@googlegroups.com] On Behalf Of Earner Benjamin (ROYAL FREE LONDON NHS FOUNDATION TRUST)


Sent: Wednesday, September 05, 2012 4:29 AM
To: pinnacl...@googlegroups.com

Alex

unread,
Sep 5, 2012, 11:15:02 AM9/5/12
to pinnacl...@googlegroups.com
Hi Earner,

I for one would like to learn how to set up Samba shares.
Can you share your procedure or point to some reference doc?

On a tangential issue, for exporting pdf, how does one set up script
to print the CT slices to be included?

Thanks in advance,
Alex Nguyen

Earner Benjamin (ROYAL FREE LONDON NHS FOUNDATION TRUST)

unread,
Sep 6, 2012, 4:20:32 AM9/6/12
to pinnacl...@googlegroups.com
Hi Alex,

I'm afraid I don't have a procedure, although there looks to be some sites online that guide you through it, E.g.

https://blogs.oracle.com/timthomas/entry/enabling_and_configuring_samba_as

However, I would recommend you ask Philips to set it up for you just to be safe.

Ben

-----Original Message-----
From: pinnacl...@googlegroups.com [mailto:pinnacl...@googlegroups.com] On Behalf Of Alex
Sent: 05 September 2012 16:15
To: pinnacl...@googlegroups.com
Subject: Re: [p3rtp] Pinnacle 9.2 PDF export to Mosaiq

Hi Earner,

I for one would like to learn how to set up Samba shares.
Can you share your procedure or point to some reference doc?

On a tangential issue, for exporting pdf, how does one set up script
to print the CT slices to be included?

Thanks in advance,
Alex Nguyen
>
> Or can you change your escan folder location? I know for definite that
> Solaris can make Samba shares, so if you could change your escan directory
> to point to a samba share on Pinnacle which also happens to be your PDF
> creation directory. Whether this will work or be practical will depend on
> how you use Mosaiq/its limitations...
Reply all
Reply to author
Forward
0 new messages