You are not logged in.

#1 2017-10-01 05:19:29

ABOhiccups
Member
Registered: 2017-08-27
Posts: 99
Website

[SOLVED] Need help to run Multiple Commands on Mail Watcher

I want to use both notify-send and espeak in "Run on new messages:" on Mail Watcher Plugin at the same time.

I did try notify-send "New mail" "You have new messages in your inbox" -i xfce-newmail & espeak "You got mail!". But nothing happen. The "&" works in Terminal but not in Mail Watcher.

Can anyone help me?

Last edited by ABOhiccups (2017-10-01 06:09:18)

Offline

#2 2017-10-01 05:23:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Need help to run Multiple Commands on Mail Watcher

Please edit your post and remove the redundant plea for help: https://wiki.archlinux.org/index.php/Co … ow_to_post

`&` backgrounds commands in the shell, it doesn't chain them if the previous one succeeded, that is `&&`.

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-10-01 05:30:47

ABOhiccups
Member
Registered: 2017-08-27
Posts: 99
Website

Re: [SOLVED] Need help to run Multiple Commands on Mail Watcher

jasonwryan wrote:

`&` backgrounds commands in the shell, it doesn't chain them if the previous one succeeded, that is `&&`.

I did try "&&" it does not work in Mail Watcher. Only works in Terminal.

"||" don't work in Mail Watcher too.

Last edited by ABOhiccups (2017-10-01 05:41:19)

Offline

#4 2017-10-01 05:51:43

ABOhiccups
Member
Registered: 2017-08-27
Posts: 99
Website

Re: [SOLVED] Need help to run Multiple Commands on Mail Watcher

The only way to run multiple commands in Mail Watcher.

I have to create a Bash Script for this to work.

#!/bin/sh
notify-send "New mail" "You have new messages in your inbox" -i xfce-newmail
espeak "You got mail!"

Offline

Board footer

Powered by FluxBB