passing variable to script
scooter6 at gmail.com
scooter6 at gmail.com
Thu Oct 7 08:34:40 PDT 2010
I have an export ascii out put processing script that I want to setup to
email after it finishes.
Currently, in output processing, I use variables to create filename based on
today's date, etc and that all works fine
Then: export ascii deb=(fd) r=\n f=|
Then: deb(1)=1, etc, etc, etc
Then: write deb; end
Now, after this finishes with all the records selected via set selection, I
want to email the file, passing the variable filename to the script
I thought easiest way would be to do a system call at the end, but if I
change
Then: write deb; end
to
Then: write deb
Then: system "path_to_my_script" < fd
obviously this calls the system call after each record is written to the
file - resulting in numerous emails of course haha
So, my next thought would be from the menu, to script it as:
/u/appl/fp/rreport ............
cd /appl/fpmerge
./script_name_to_send_email ???????
So how would I get the filename (fd) as defined in processing, passed to the
email in the Create Script File (F5) in the define menus??
Either that, or how do I do a system call ONLY after all records have been
written to my output file??
Thanks for any help
Scott Ullmann
PDM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20101007/0b8c0e62/attachment.html
More information about the Filepro-list
mailing list