Home > Back-end >  sed: can't read, invalid sigil
sed: can't read, invalid sigil

Time:07-15

At my work we have remote Windows desktop for Ubuntu users (me). The connection was fine until today I arrived at work. When I tried to run ./agenda.sh command in terminal, I got this error:

sed: can't read /cert:tofu: No such file or directory
sed: can't read /v:HOST_CONN: No such file or directory
[07:13:50:713] [6890:6890] [ERROR][com.winpr.commandline] - Failed at index 1 [/size:1800x950]: Invalid sigil

agenda.sh:

#!/bin/bash
unset http_proxy
unset https_proxy
unset HTTP_PROXY
unset HTTPS_PROXY
xfreerdp /size:"1800x950" /u:"user" /d:company /p:grep pass ~/.mad | sed "s/.*=//" /cert:tofu /v:HOST_CONN

Anyone got a hint? As I said before, it worked 12 hours ago...

CodePudding user response:

Someone has edited this command, perhaps in an attempt to set the password from a value stored in a file:

xfreerdp /size:"1800x950" /u:"user" /d:company /p:grep pass ~/.mad | sed "s/.*=//" /cert:tofu /v:HOST_CONN

I would guess it is supposed to be more like:

xfreerdp /size:"1800x950" /u:"user" /d:company /p:"$(grep pass ~/.mad | sed "s/.*=//")" /cert:tofu /v:HOST_CONN
  • Related