Page 1 of 1

cannot run accel-cmd show sessions from bash script

Posted: 10 Mar 2023, 08:55
by hashbang
Hi,
I'm unable to run show commands like accel-cmd show sessions, accel-cmd pppoe interface show from a bash script. Gives command not found error
command : `accel-cmd -P $PASSWORD show sessions`
`accel-cmd -P $PASSWORD pppoe interface show`

line 56: interface:: command not found
how to run this command in bash script
TY

Re: cannot run accel-cmd show sessions from bash script

Posted: 10 Mar 2023, 10:55
by dimka88
Hi, I test the simple script ant it just works

Code: Select all

#!/bin/bash

PASSWORD="secret123"

accel-cmd -P${PASSWORD} show sessions


Re: cannot run accel-cmd show sessions from bash script

Posted: 11 Mar 2023, 07:38
by hashbang
ty,
removed the back ticks and it started working
thanks again