Posts

Showing posts from November 28, 2018

Document Viewer Annotation Printing

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite Using Document Viewer 3.28.4 on Linux Mint. However, when I print the document it will not print annotations. I am printing to Samsung ML-2240-Series. The annotation also does not appear in Preview. evince share | improve this question edited Nov 22 at 10:31 Rui F Ribeiro 38.3k 14 75 126 asked Nov 22 at 10:27 Bolivar 1 New contributor Bolivar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add a comment  |  up vote 0 down vote favorite Using Document Viewer 3.28.4 on Linux Mint. However, when I print the document it will not print annotations. I am printing to Samsung ML-2240-Series. The annotation also does not appear in Preview. evince share | improve this question edited Nov 22 at 10:31 Rui F Ribeiro 38.3k 14 75 126 aske...

From guake, pass command to gnome-terminal to kill and respawn guake

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite Background I have tried to provide an answer to Restart Guake inside Guake . So far, I have achieved to: create a gnome-terminal deamon, from guake : screen -dmS other_terminal gnome-terminal kill and respawn guake as a daemon, from gnome-terminal : pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit It is basically what I want to achieve, except that it's a two step process : you need to first run commands in guake , then in gnome-terminal . Problem I have tried to create a one-liner, passing gnome-terminal 's commands as an argument: screen -dmS other_terminal gnome-terminal -- bash --login -c 'pkill -f guake; screen -dmS guake_respawn bash --login -c "guake; exec sh"; exit' However, it fails after guake has been killed. Question ➥ How to pass, from guake , commands that kill and respawn it from `gnome-terminal? Or, in other word, how to restart...

Cannot pass input argument to sql command in bash script

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I have bash script "test.sh" and user kong in worker table. Here is my test.sh. #!/bin/bash result=$(mysql -s -N -u root --password='password' --execute='SELECT COUNT(*) FROM signserver.worker WHERE User="$1"'); echo $result; When I run the command, ./test.sh kong the output is 0 which actually supposed to be 1. I tried to change the bash script from User="$1" to User="kong" and it's returned 1 but I want the script to be able to check from the input argument. bash sql share | improve this question asked Nov 22 at 9:43 Kong 1 1 New contributor Kong is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add a comment  |  up vote 0 down vote favorite I have bash script "test.sh" and user kong in worker table. Her...