[Help Request] Running Scripts from an Application February 04, 2020 03:36PM |
Registered: 7 years ago Posts: 162 |
#!/bin/sh /usr/bin/pkill arecord& exit 0
#!/bin/sh /usr/bin/arecord -D plughw:CARD=Set -f dat | /usr/bin/aplay -D plughw:CARD=Set -f dat& exit 0
// Advanced parameters for controlling how a Shairport Sync runs sessioncontrol = { run_this_before_play_begins = "/root/shScripts/shairportstart.sh"; // make sure the application has executable permission. If it's a script, include the #!... stuff on the first line run_this_after_play_ends = "/root/shScripts/shairportend.sh"; // make sure the application has executable permission. It it's a script, include the #!... stuff on the first line wait_for_completion = "yes"; // set to "yes" to get Shairport Sync to wait until the "run_this..." applications have terminated before continuing // allow_session_interruption = "no"; // set to "yes" to allow another device to interrupt Shairport Sync while it's playing from an existing audio source // session_timeout = 120; // wait for this number of seconds after a source disappears before terminating the session and becoming available again. };
root@pogoplugpro:~/shScripts# ls -la total 24 drwxrwxrwx 2 root root 4096 Jan 19 22:01 . drwx------ 6 root root 4096 Jan 19 22:10 .. -rwxrwxrwx 1 shairport-sync shairport-sync 104 Dec 29 13:56 shairportend.sh -rwxrwxrwx 1 root root 118 Dec 29 13:57 shairportfade.sh -rwxrwxrwx 1 shairport-sync shairport-sync 41 Dec 29 14:24 shairportstart.sh -rwxrwxrwx 1 shairport-sync shairport-sync 166 Jan 19 22:01 shairporttest.sh
root@pogoplugpro:~/shScripts# getent passwd root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin messagebus:x:102:103::/var/run/dbus:/bin/false avahi:x:103:104:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false ntp:x:104:106::/home/ntp:/bin/false statd:x:105:65534::/var/lib/nfs:/bin/false uuidd:x:100:101::/run/uuidd:/bin/false _apt:x:106:65534::/nonexistent:/bin/false systemd-timesync:x:107:109:systemd Time Synchronization,,,:/run/systemd:/bin/false systemd-network:x:108:110:systemd Network Management,,,:/run/systemd/netif:/bin/false systemd-resolve:x:109:111:systemd Resolver,,,:/run/systemd/resolve:/bin/false systemd-bus-proxy:x:110:112:systemd Bus Proxy,,,:/run/systemd:/bin/false shairport-sync:x:111:113::/run/shairport-sync:/bin/bash motion:x:112:114::/var/lib/motion:/bin/false
Re: [Help Request] Running Scripts from an Application February 04, 2020 04:54PM |
Registered: 5 years ago Posts: 258 |
Re: [Help Request] Running Scripts from an Application February 04, 2020 08:53PM |
Registered: 7 years ago Posts: 162 |
Re: [Help Request] Running Scripts from an Application February 04, 2020 11:10PM |
Registered: 5 years ago Posts: 258 |
Re: [Help Request] Running Scripts from an Application March 02, 2020 02:13PM |
Registered: 7 years ago Posts: 162 |
Re: [Help Request] Running Scripts from an Application March 02, 2020 03:18PM |
Registered: 10 years ago Posts: 226 |
Re: [Help Request] Running Scripts from an Application March 02, 2020 03:27PM |
Registered: 7 years ago Posts: 162 |
/usr/bin/arecord -D plughw:CARD=Set -f dat | /usr/bin/aplay -D plughw:CARD=Set -f dat
Re: [Help Request] Running Scripts from an Application March 02, 2020 03:36PM |
Registered: 10 years ago Posts: 226 |
Re: [Help Request] Running Scripts from an Application March 03, 2020 07:51PM |
Registered: 7 years ago Posts: 13 |
Re: [Help Request] Running Scripts from an Application March 06, 2020 10:45AM |
Registered: 7 years ago Posts: 162 |