REVISED==>>How to append filepro generated text to the first line of a filepro generated file.

oldtony tony at ynotsoftware.com
Sat May 2 12:54:32 PDT 2020


Hi experts - thanks for the input. I have figured out a working solution 
and i also answered Brian White's questions below:

working solution below:

-->> in the menu after the program creates the files wolfprt and sendem.txt

-->>this string ->   !PDF /fP:\files\prt\wolfprt.pdf 
/email="tony at ynotsoftware.com /j"this is a test"

-->> file /HOLDEM/sendem.txt holds this string

-->>cat /WEBIN/prt/wolfprt >> /HOLDEM/sendem.txt

#sendem.txt is a file containing this string - above makes a file with 
the wolfprt content after this string

-->>cd /SNDEM        #when i tried just cp it failed, changing to 
destination directory worked.

-->>cp /HOLDEM/sendem.txt .

-->>chmod 777 /SNDEM/sendem.txt


Answers to Brian White's questions below: (as always thanks for your 
help) see -->> marks.

The file generation is on Linux.  P is a windows share folder. Also 
using the GREAT ANZIO Printwizard.


filepro generates a file for me (a text file of a printout). file is 
P:\files\prt\wolfprt

-->>the above files is a filepro report printing to to a file.


filepro generates this string for me:     !PDF 
/fP:\files\prt\wolfprt.pdf /email="tony at ynotsoftware.com /j"this is a test"

-->> above files is generated using JSFILE


When i manually edit the file P:\files\prt\wolfprt  and put this string 
as the first line of the file P:\files\prt\wolfprt i get the desired 
results. That is, when i copy the edited file to Print Wizard despool 
directory a email is sent to me with the report is attached as a PDF file.

the string filepro generates has lots of special characters. which has 
caused issues for me

i want to do a system call using something like AWK or sed to add this 
string as the first line of the file p:\files\prt\wolfprt.

I am hoping one of you experts will help

thanks

Old Tony

-- 
tony at ynotsoftware.com
Tony Freehauf (Old Tony)
YNOT Software & PC Support
815.467.2179
YNOT sounds like "Why Not."
YNOT let us help you.



More information about the Filepro-list mailing list