[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2004-11-15
Medium Priority
Last Modified: 2013-12-20

    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.)

Question by:joneset

Expert Comment

ID: 12586272
Like process return code? Not possible on Unix.

Expert Comment

ID: 12599981
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.

Author Comment

ID: 12603778
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).


Accepted Solution

modulo earned 0 total points
ID: 12848514
PAQed with points refunded (500)

Community Support Moderator

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question