Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Run a Virex scan of the current terminal directory UNIX
I sometimes want to make a quick scan of my current directory, so I put the following (single) line into my .cshrc file:
alias vsc 'pwd > /usr/local/vscanx/thisdir; pushd 
/usr/local/vscanx/; ./vscanx --config config1
--verbose --file thisdir; popd'
[As noted, this is one line, not three - enter it on one row with a space replacing the carriage returns on each row.]

In the command, 'config1' contains the (surprise!) configuration for the vscanx engine ('--verbose' is not in my config1 file ;-). Someone else might find it handy.
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[2,568 views]  

Run a Virex scan of the current terminal directory | 2 comments | Create New Account
Click here to return to the 'Run a Virex scan of the current terminal directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Alternate alias for Virex command line
Authored by: jasonheyd on Oct 16, '02 01:55:00PM

I've done something similar, but allowed for flexibility on the command line:

alias vsc=\'/usr/local/vscanx/vscanx ${1} --summary ./\'

Using this alias, I always get a scan of the files in the current directory along with a summary output, but I can also do things like this:

vsc -r
vsc -r --verbose

Also eliminates the need to redirect 'pwd' into a file and, push/popd, and use a config file.

jh.



[ Reply to This | # ]
Alternate alias for Virex command line
Authored by: tjj on Oct 20, '02 04:49:11AM

Thanks for sharing it.
As a total unix novice it's nice to be shown a smarter way.
I guess the ./ at the end is the obvious current directory, but what does the $1 do?
I usually want to scan inside compressed files and other custom settings, so to avoid typing this every time I use the configuration file...



[ Reply to This | # ]