How do I 'see' numeric return code from uvscan (on unix) after cfexecute


Hi,
    I am trying to run uvscan on a unix os.  Seems to run ok.  Using cfsavecontent and cfexecute I can sucessfully execute uvscan and the var for cfsavecontent does contain verbose output of uvscan.  What I really need are the numeric status codes that are returned by uvscan.  
What do I do to capture and handle those codes?  (I am new to Coldfusion... so the answer to this question may be simple and I just don't have enough experience to know how to do it.  Thanks for any info.)

El
LVL 1
jonesetAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

INSDivision6Commented:
Like process return code? Not possible on Unix.
dcodezCommented:
El,
When you run uvscan from the command line in unix, does it return the codes as part of the standard output, or do you have to supply additional arguments to have it return these codes?  CF will simply capture any output generated by the cfexecute call and either output it to the page or save it on the server.
jonesetAuthor Commented:
Thanks for your comment INDSDivision6.... I did find a work around.

dcodez ... uvscan does output to the user a message regarding scan result ... ie virus found blah, blah, blah.

Also, it returns a numeric code automatically.  My problem is that it appears that coldfusion can capture only program output,  and not the status code returned from an executed program.

My work around is a shell script that gets arguments from cold fusion and runs uvscan accordingly.  The script outputs either a numeric or verbose status, all according to input arguments to the shell from coldfusion.  Works good.

Moderator... please close this question... (I 've found my own solution).

El
moduloCommented:
PAQed with points refunded (500)

modulo
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.