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


Click here to return to the 'Alternate alias for Virex command line' 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 | # ]