Am Freitag, 11. Mai 2018 13:52:23 UTC+2 schrieb cr33d...@gmail.com: > Hey Everyone!, > > currently working on several automation processes using bash scripts executed > in dom0 to do certain actions. > > To execute an specific command, normally we are using s.th. like: > > qvm-run <option> [VMname] <cmd> > > E.g.: qvm-run personal "cp /home/user/Desktop/test.txt > /home/user/Documents/test.txt > > Now my situation: > > When connecting to an ftp-server via: ftp <serverip>, i had to enter an > username and password. > > How to execute this using qvm-run? I suggest to write a little script like: > > #!/bin/bash > > qvm-run personal "ftp <serverip>" | qvm-run personal "user /n" |qvm-run > personal "pw \n" > > Unfortunately this one does not work since last two aren't commands. However, > is it possible to insert such keyboard entries in an VM's console to get this > work? > > Thanks, > Jonny
Hey All, an alternative is to write an executable bash script in the qube that to the ftp stuff, bind it to PATH and execute it with qvm-run. But, if there is an alternative, not to use a script located on that vm and do all remotely, i would be pleased to hear your ideas :) Thanks, Jonny -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/7d1acab8-ba4b-4512-b048-8cdeac6f88d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.