How to append filepro generated text to the first line of a filepro generated file.
Jose Lerebours
fpgroups at gmail.com
Fri May 1 13:57:18 PDT 2020
On 5/1/20 1:51 PM, oldtony via Filepro-list wrote:
> 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
>
> filepro generates this string for me: !PDF
> /fP:\files\prt\wolfprt.pdf /email="tony at ynotsoftware.com /j"this is a
> test"
>
> 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
>
I wonder if a simply shell command such as
echo '!PDF /fP:\files\prt\wolfprt.pdf /email="tony at ynotsoftware.com
/j"this is a test"' `cat p:\files\prt\wolfprt` > p:\files\prt\wolfprt
could get the job done!?!
More information about the Filepro-list
mailing list