Linux Mint hotkeys: how to use pipes and redirects?
Clash Royale CLAN TAG#URR8PPP
up vote
-4
down vote
favorite
How to use redirectors and built-in shell functions in hotkey commands?
I'm using the following line to grep in anacrontab, and kick-off an system update Ansible playbook:
redirectors
I'm wondering why lines with a pipe (|) do not work: echo piping | logger
. No error is shown. Instead logger hi
can do the job in this example. How come this happens? Is there another way to use redirectors?
build-in shell functions
There is an error message for bash build-in shell functions such as read.
Translation: Execution of child process read
failed (File or folder does not exist)
Hope someone could explain what actually happens when a hotkey command is invoked :). And point out an alternative.
linux linux-mint keyboard-shortcuts
add a comment |Â
up vote
-4
down vote
favorite
How to use redirectors and built-in shell functions in hotkey commands?
I'm using the following line to grep in anacrontab, and kick-off an system update Ansible playbook:
redirectors
I'm wondering why lines with a pipe (|) do not work: echo piping | logger
. No error is shown. Instead logger hi
can do the job in this example. How come this happens? Is there another way to use redirectors?
build-in shell functions
There is an error message for bash build-in shell functions such as read.
Translation: Execution of child process read
failed (File or folder does not exist)
Hope someone could explain what actually happens when a hotkey command is invoked :). And point out an alternative.
linux linux-mint keyboard-shortcuts
idownvotedbecau.se/imageofcode, idownvotedbecau.se/imageofanexception, and a translation of the messages would also be helpful, as most people around here don't speak dutch.
â Murphy
Jan 14 at 9:11
Did you try enclosing the command in double quotes?"echo piping | logger"
â Murphy
Jan 14 at 9:12
Hey slimmerik, niet iedereen spreekt hier Nederlands ... (for those who don't understand dutch/Flemish: hey, not everybody speaks Dutch around here ...). Hurry to translate it all to English, and do not use "images" ...
â Pierre.Vriens
Jan 14 at 9:23
add a comment |Â
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
How to use redirectors and built-in shell functions in hotkey commands?
I'm using the following line to grep in anacrontab, and kick-off an system update Ansible playbook:
redirectors
I'm wondering why lines with a pipe (|) do not work: echo piping | logger
. No error is shown. Instead logger hi
can do the job in this example. How come this happens? Is there another way to use redirectors?
build-in shell functions
There is an error message for bash build-in shell functions such as read.
Translation: Execution of child process read
failed (File or folder does not exist)
Hope someone could explain what actually happens when a hotkey command is invoked :). And point out an alternative.
linux linux-mint keyboard-shortcuts
How to use redirectors and built-in shell functions in hotkey commands?
I'm using the following line to grep in anacrontab, and kick-off an system update Ansible playbook:
redirectors
I'm wondering why lines with a pipe (|) do not work: echo piping | logger
. No error is shown. Instead logger hi
can do the job in this example. How come this happens? Is there another way to use redirectors?
build-in shell functions
There is an error message for bash build-in shell functions such as read.
Translation: Execution of child process read
failed (File or folder does not exist)
Hope someone could explain what actually happens when a hotkey command is invoked :). And point out an alternative.
linux linux-mint keyboard-shortcuts
edited May 27 at 7:33
asked Jan 14 at 8:44
Eimert
33
33
idownvotedbecau.se/imageofcode, idownvotedbecau.se/imageofanexception, and a translation of the messages would also be helpful, as most people around here don't speak dutch.
â Murphy
Jan 14 at 9:11
Did you try enclosing the command in double quotes?"echo piping | logger"
â Murphy
Jan 14 at 9:12
Hey slimmerik, niet iedereen spreekt hier Nederlands ... (for those who don't understand dutch/Flemish: hey, not everybody speaks Dutch around here ...). Hurry to translate it all to English, and do not use "images" ...
â Pierre.Vriens
Jan 14 at 9:23
add a comment |Â
idownvotedbecau.se/imageofcode, idownvotedbecau.se/imageofanexception, and a translation of the messages would also be helpful, as most people around here don't speak dutch.
â Murphy
Jan 14 at 9:11
Did you try enclosing the command in double quotes?"echo piping | logger"
â Murphy
Jan 14 at 9:12
Hey slimmerik, niet iedereen spreekt hier Nederlands ... (for those who don't understand dutch/Flemish: hey, not everybody speaks Dutch around here ...). Hurry to translate it all to English, and do not use "images" ...
â Pierre.Vriens
Jan 14 at 9:23
idownvotedbecau.se/imageofcode, idownvotedbecau.se/imageofanexception, and a translation of the messages would also be helpful, as most people around here don't speak dutch.
â Murphy
Jan 14 at 9:11
idownvotedbecau.se/imageofcode, idownvotedbecau.se/imageofanexception, and a translation of the messages would also be helpful, as most people around here don't speak dutch.
â Murphy
Jan 14 at 9:11
Did you try enclosing the command in double quotes?
"echo piping | logger"
â Murphy
Jan 14 at 9:12
Did you try enclosing the command in double quotes?
"echo piping | logger"
â Murphy
Jan 14 at 9:12
Hey slimmerik, niet iedereen spreekt hier Nederlands ... (for those who don't understand dutch/Flemish: hey, not everybody speaks Dutch around here ...). Hurry to translate it all to English, and do not use "images" ...
â Pierre.Vriens
Jan 14 at 9:23
Hey slimmerik, niet iedereen spreekt hier Nederlands ... (for those who don't understand dutch/Flemish: hey, not everybody speaks Dutch around here ...). Hurry to translate it all to English, and do not use "images" ...
â Pierre.Vriens
Jan 14 at 9:23
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Try sh -c 'command1 | command2'
Got what I wanted using:bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).
â Eimert
Jan 15 at 8:35
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Try sh -c 'command1 | command2'
Got what I wanted using:bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).
â Eimert
Jan 15 at 8:35
add a comment |Â
up vote
0
down vote
accepted
Try sh -c 'command1 | command2'
Got what I wanted using:bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).
â Eimert
Jan 15 at 8:35
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Try sh -c 'command1 | command2'
Try sh -c 'command1 | command2'
answered Jan 14 at 18:49
Free Bullets
37526
37526
Got what I wanted using:bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).
â Eimert
Jan 15 at 8:35
add a comment |Â
Got what I wanted using:bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).
â Eimert
Jan 15 at 8:35
Got what I wanted using:
bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).â Eimert
Jan 15 at 8:35
Got what I wanted using:
bash -c "$(grep -P --color -o '(?<=system-maintenance.daily).*' /etc/anacrontab | sh -)"
Thank you so much :).â Eimert
Jan 15 at 8:35
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416987%2flinux-mint-hotkeys-how-to-use-pipes-and-redirects%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
idownvotedbecau.se/imageofcode, idownvotedbecau.se/imageofanexception, and a translation of the messages would also be helpful, as most people around here don't speak dutch.
â Murphy
Jan 14 at 9:11
Did you try enclosing the command in double quotes?
"echo piping | logger"
â Murphy
Jan 14 at 9:12
Hey slimmerik, niet iedereen spreekt hier Nederlands ... (for those who don't understand dutch/Flemish: hey, not everybody speaks Dutch around here ...). Hurry to translate it all to English, and do not use "images" ...
â Pierre.Vriens
Jan 14 at 9:23