Y
Y
Yuri Khodorenkov2018-03-23 18:02:46
Remote Desktop
Yuri Khodorenkov, 2018-03-23 18:02:46

Run script to connect via xfreerdp. Why doesn't it work from a script?

Welcome all!
Linux Mint 18.3
Faced a problem.
In order not to enter the command every time in the console, I made a script with the following content:

spoiler

#!/bin/bash
xfreerdp /t:SRV-TERM5 /v:srv-term5 /f /u:$duser /p:"$dpass" /d:$ddom /monitors:1 /rfx /cert-ignore +home-drive +clipboard

Made the file executable, at startup, as it should be, it asks you to select an action (run, edit, etc.).
I choose Run, and nifiga...
If you paste the command into the terminal, then everything works, if you drag the script into the terminal it works, if you run the script itself, it doesn't work...
What's the gag?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question