View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#282
Originally Posted by Arf the Lab View Post
I copied your sample script verbatim and saved is plain text "wtc.sh" in a "/home/user/MyDocs/scripts" directory. Then I pointed Billboard to it via:

{script:/home/user/MyDocs/scripts/wtc.sh}
You have to place it into /home/user/ (or anywhere except MyDocs), because MyDocs is a vfat partition, and it can't have Unix permission bits set the same way as the other filesystems can. Also, add a shebang line and make it executable:
  • Add "#!/bin/sh" as the first line of the script
  • Save the script in e.g. /home/user/wtc.sh
  • chmod +x /home/user/wtc.sh
  • Add to Billboard: {script:/home/user/wtc.sh}
 

The Following 3 Users Say Thank You to thp For This Useful Post: