Can PROMON be run using parameters?

I know how to run PROMON and disconnect a user.
Is it possible to run PROMON and send it parameters to do the same thing so that it can run non-interactive?
 
Hi,

If you like to disconnect users only you can do it without PROMON:

$DLC/bin/proshut -db $DBNAME -C disconnect $USERNO

Best regards,
Gabor
 
As far as automating promon goes, I have successfully worked with the following in the past.
echo "8" > promon.in
echo "1" >> promon.in
grep username database.lg | tail -1 | cut -f1 -d "," | cut -f2 -d "m" >> promon.in
echo "x" >> promon.in
echo "q" >> promon.in
promon database < promon.in > promon.out
The "grep" command may require tuning depending on how you connect to the database. All you are trying to do is get a line with the user number into promon.in
 
Top