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

Posted on 2004-11-15
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
    LVL 7

    Expert Comment

    Like process return code? Not possible on Unix.
    LVL 2

    Expert Comment

    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.
    LVL 1

    Author Comment

    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

    PAQed with points refunded (500)

    Community Support Moderator

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
    Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
    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 integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now