LINUX.ORG.RU

История изменений

Исправление Shulman, (текущая версия) :

root@Debian9:~# /root/tlgTest.sh
+ SUFFIX=daily_1_08
+ MESSAGE='FAIL | pd_dump | PostgreSQL | daily_1_08'
+ echo FAIL '|' pd_dump '|' PostgreSQL '|' daily_1_08
FAIL | pd_dump | PostgreSQL | daily_1_08
+ EXECCMD='"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"'
+ echo '"msg' Admins_message '""FAIL' '|' pd_dump '|' PostgreSQL '|' 'daily_1_08"'
"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"
+ /root/tg/bin/telegram-cli -k /root/tg/tg-server.pub --disable-output --wait-dialog-list --exec '"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"'
change_user_group: can't find the user telegramd to switch to
FAIL: 38: can not parse modifier
> All done. Exit
halt

FAIL: 38: can not parse modifier – возникает

root@Debian9:~# /root/tg/bin/telegram-cli -k /root/tg/tg-server.pub --disable-output --wait-dialog-list --exec '"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"'
change_user_group: can't find the user telegramd to switch to
FAIL: 38: can not parse modifier
> All done. Exit
halt

FAIL: 38: can not parse modifier – возникает

root@Debian9:~# /root/tg/bin/telegram-cli -k /root/tg/tg-server.pub --disable-output --wait-dialog-list --exec "msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"
change_user_group: can't find the user telegramd to switch to
> All done. Exit
halt

FAIL: 38: can not parse modifier – не возникает и я вижу сообщение в чате

как убрать '' из командной строки?

Исходная версия Shulman, :

root@Debian9:~# /root/tlgTest.sh
+ SUFFIX=daily_1_08
+ MESSAGE='FAIL | pd_dump | PostgreSQL | daily_1_08'
+ echo FAIL '|' pd_dump '|' PostgreSQL '|' daily_1_08
FAIL | pd_dump | PostgreSQL | daily_1_08
+ EXECCMD='"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"'
+ echo '"msg' Admins_message '""FAIL' '|' pd_dump '|' PostgreSQL '|' 'daily_1_08"'
"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"
+ /root/tg/bin/telegram-cli -k /root/tg/tg-server.pub --disable-output --wait-dialog-list --exec '"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"'
change_user_group: can't find the user telegramd to switch to
FAIL: 38: can not parse modifier
> All done. Exit
halt
root@Debian9:~# /root/tg/bin/telegram-cli -k /root/tg/tg-server.pub --disable-output --wait-dialog-list --exec '"msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"'
change_user_group: can't find the user telegramd to switch to
FAIL: 38: can not parse modifier
> All done. Exit
halt
root@Debian9:~# /root/tg/bin/telegram-cli -k /root/tg/tg-server.pub --disable-output --wait-dialog-list --exec "msg Admins_message ""FAIL | pd_dump | PostgreSQL | daily_1_08"
change_user_group: can't find the user telegramd to switch to
> All done. Exit
halt

как убрать '' из командной строки?