Find the answer to your Linux question:
Results 1 to 2 of 2
Last night I wrote out a shell script that is called from cron, and the script functions as an alarm clock. I've been trying to get the script to run ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Georgia, US
    Posts
    53

    Some help with a shell script

    Last night I wrote out a shell script that is called from cron, and the script functions as an alarm clock. I've been trying to get the script to run mplayer graphically, instead of invisibly. If I call the script myself from a terminal, then it shows mplayer in the terminal, and I can easily quit the script. Though if I let cron call the script like it is set to at 8am on Sundays, then I have to go into the System Monitor and kill the process. Any help would be appreciated, and here is the script.

    Code:
    #!/bin/bash
    
    /usr/bin/mplayer -playlist ~/.playlist

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Run "gmplayer" instead of "mplayer" in order to get a GUI.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...