Alias Command on CSS11500

Unanswered Question
Feb 14th, 2007

To make things easier for my client I want to make an alias command to run the config synch script. The format of the command is:

alias usermode alias-name "command in double quotes"

this leads to my attempt at this:

alias superuser synchronize "script play commit_redundancy " -d -s" "

Notice the imbedded quotes? The CSS did and didn't like them. I have tried the normal things like using "" to represent an inbedded quote, no luck.

Anyone been there and done this?

Thanks in advance.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Gilles Dufour Thu, 02/15/2007 - 00:41

I don't think you can have an alias using quote.

So, you have to get rid of the quote.

You could set the ip with the command

set REMOTE_IP ""


Then you could simply have an alias

alias superuser synchronize "script play commit_redundancy"

If you really need the options -d and -s, you could extract the commit_redundancy file [it's a text file] and in the function Check_Arguments replace the IF statement in order to always set -f and -d by default.

Then copy the script back to the CSS via ftp.



This Discussion