xcfe4-terminal - Cannot run a command.
by katie12 from LinuxQuestions.org on (#6JYJ2)
The following command generates a random password, and copies it to my clipboard so I can Ctrl + V
it works perfectly via terminal
Code:pwgen -c 9 | xclip -sel clipTrying to do this via a command to assign to a keyboard shortcut is IMPOSSIBLE!
tried so many formats I have lost track
Code:xfce4-terminal --command pwgen -c 9 | xclip -sel clip --hold
xfce4-terminal --command='pwgen -c 9 | xclip -sel clip' --hold
xfce4-terminal --command='bash -c "pwgen -c 9 | xclip -sel clip"' --holdHave also tried putting it in a pw.sh script, and calling via xcfe4-terminal, doesnt work.
But if we open up a terminal and call bash pw.sh, it works perfectly.
Quote:
What am I doing wrong, There are no errors being thrown for me to understand how to resolve this, it seems like it was created badly.
it works perfectly via terminal
Code:pwgen -c 9 | xclip -sel clipTrying to do this via a command to assign to a keyboard shortcut is IMPOSSIBLE!
tried so many formats I have lost track
Code:xfce4-terminal --command pwgen -c 9 | xclip -sel clip --hold
xfce4-terminal --command='pwgen -c 9 | xclip -sel clip' --hold
xfce4-terminal --command='bash -c "pwgen -c 9 | xclip -sel clip"' --holdHave also tried putting it in a pw.sh script, and calling via xcfe4-terminal, doesnt work.
But if we open up a terminal and call bash pw.sh, it works perfectly.
Quote:
#!/bin/bash pwgen -c 9 | xclip -sel clip |
What am I doing wrong, There are no errors being thrown for me to understand how to resolve this, it seems like it was created badly.