Has anyone been successful in submitting a server console command on an AS/400 server from Lotusscript? Can you tell me what I am doing wrong (see below)? I don’t get an error message yet the router does not quit.
Are you wanting to use the LotusScript class which does the Console command?
I believe you are trying is not the same – are you trying to do via a shell command?
You might want to refer to the help file (designer) NotesSession – the method is sendconsolecommand(Byval Server as String, Byval Command As String) as String.
I think this is what you want to use and not the other text. I got this code to work on a Linux - red hat and NT (windows 2000/2003).
I don’t know LotusScript, but if there is a LotusScript method to submit a console command as Joe suggests, that should be used.
There is an error in the SBMJOB command. The PARM value should consist of two parameters, so each parameter should be single quoted. e.g. PARM(‘-c’ ‘tell router quit’)