View Full Version : Controller shell "comment out" character
earthgecko
02-18-2009, 04:36 PM
Hi
I have had a search and cannot find any info on what character can be used in a grid controller shell/ssh session? Just for clarification, a line in bash or .sh can be commented out with a #
I am writing some provisioning scripts and a comment character would be useful to add comments to these provisioning scripts.
It does not seem like there is one... but one can hope :)
Thanks
PeterNic
02-18-2009, 09:56 PM
Earthgecko,
There doesn't seem to be one. Let me check with the developers...
Regards,
-- Peter
earthgecko
02-25-2009, 02:29 AM
The documentation on the CLI input termination specifies only Ctrl+d once, may just be my client (PuTTY) but I have to use Ctrl+dCtrl+d twice to terminate input. This is referenced in - http://doc.3tera.com/AppLogic24/CliApplication.html#AnchorPutDesc and other places as well, I have not seen a reference to the two Crtl+d's that I have to use. Once again, could just be my client.
HOWEVER!!! Being able to use ^D^D or just ^D when pasting in a descriptor would BE VERY USEFUL and reduce possible user error when building from documented build scripts...
another two cents.... I have a few :)
PeterNic
03-02-2009, 12:54 AM
Earthgecko,
another two cents.... I have a few :)
I'll take the full dollar :)
Regarding the shell comment character and the Ctrl-D -- I seem not to understand how you are using the AppLogic shell; those have not come up before.
In short, the AppLogic shell commands are more of an API than a script language -- in a way, it is similar to SQL in that if you want to execute it programmatically, you will probably embed it in another language (usually, bash or perl, sometimes php or Java). The CLI rmacros are an example of how to make this convenient for bash.
As such, I am not sure I understand how the comment character would be used -- unless you are feeding multiple commands as a response file (which has the obvious disadvantage that you cannot detect and respond to command failure).
On the Ctrl-D issue -- I don't know if this is Putty or us; can you check with Cygwin ssh or, better, try it from a VDS instance on the grid itself?
You obviously are trying to do something fun with the CLI and the grid itself. I am curious :)
(you can PM me if it is not for public posting)
Regards,
-- Peter
earthgecko
04-05-2009, 04:53 AM
Hi Peter
Thanks for the tip the CLI rmacros are quite close to what I am talking about. It would still be useful to be able to copy and paste a class put_desc directly on the Grid Controller and ensure it was ended with a ^D^D and that would ensure it was placed with the correct formatting at the end, I realise I may be the only person that has requested this :)
I have PM'ed you the context.
vBulletin® v3.7.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.