Answer the question
In order to leave comments, you need to log in
How to create shortcut in php script?
There is a certain php script that requests information from a remote server and outputs it using notify-send.
Run from console: [email protected]:~$ php ~/patch/my.php
Inside:
shell_exec('notify-send "Мой скрипт" "'. $result .'"');
Answer the question
In order to leave comments, you need to log in
Are you sure it's running? notify-send is supposed to be set globally and should be visible from everywhere. Check with normal bash script:
#!/bin/bash
notify-send hello
$ chmod +x hello.sh
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question