The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Please help with computer name Solaris 5.8 komputersman SUN Solaris 12 08-01-2007 11:53 AM
who - PC Computer name gefa UNIX for Advanced & Expert Users 4 04-26-2007 06:11 AM
getting computer name coredump2003 High Level Programming 2 02-17-2004 03:45 AM
can't acces ftp from my computer TuMux UNIX for Dummies Questions & Answers 7 11-18-2003 10:41 AM
mailx sender address customisation vasan_srini UNIX for Dummies Questions & Answers 1 09-10-2001 05:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-01-2007
Registered User
 

Join Date: Dec 2006
Posts: 4
Another shell customisation for my computer

Hey, this time, I want my rhythmbox to play a different playlist at a set time (about sleeping time). my shellcode works, since if i run it it works, but when i make crontab run it, nothing happens. I try appending commands to the code, such as cp a file, and that occurs, so I have no idea what is wrong. Any ideas? sorry if this is a newbie question, but I really want to customise my system (to tell me to sleep ^_^)

Code:
#kill current rhythmbox
if ps ax | grep -v grep | grep "rhythmbox" > /dev/null
then
	/usr/bin/rhythmbox --quit
	sleep 2
fi

#load second profile - sleep profile
/usr/bin/rhythmbox --rhythmdb-file=/home/david/.gnome2/rhythmbox/rhythmdb2.xml --toggle-hide &

sleep 2

#play from that profile
/usr/bin/rhythmbox --play &

Last edited by davidY; 01-01-2007 at 05:40 AM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-01-2007
Registered User
 

Join Date: Dec 2006
Posts: 4
I recently found out how to redirect standard error - and it says that:

(rhythmbox:28057): Gtk-WARNING **: cannot open display:

so obviously I need the program to do its job without using the display. I think iw ill ask the rhythmbox forums (if there is one). thanks
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0