cannot run accel-cmd show sessions from bash script

Questions related to general functionality
Post Reply
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

cannot run accel-cmd show sessions from bash script

Post 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
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

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

Post 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

hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

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

Post by hashbang »

ty,
removed the back ticks and it started working
thanks again
Post Reply