Linux Mint hotkeys: how to use pipes and redirects?

The name of the pictureThe name of the pictureThe name of the pictureClash 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:
hotkey



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.
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.







share|improve this question






















  • 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















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:
hotkey



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.
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.







share|improve this question






















  • 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













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:
hotkey



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.
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.







share|improve this question














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:
hotkey



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.
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.









share|improve this question













share|improve this question




share|improve this question








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

















  • 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











1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Try sh -c 'command1 | command2'






share|improve this answer




















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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






























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'






share|improve this answer




















  • 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














up vote
0
down vote



accepted










Try sh -c 'command1 | command2'






share|improve this answer




















  • 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












up vote
0
down vote



accepted







up vote
0
down vote



accepted






Try sh -c 'command1 | command2'






share|improve this answer












Try sh -c 'command1 | command2'







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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












 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Christian Cage

How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?