Another customisation for my computer


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Another customisation for my computer
# 1  
Old 01-01-2007
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 09:40 AM..
# 2  
Old 01-02-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which Computer to buy?

I currently own a macbook which I am happy with. I will be starting CS coursework in august, is it ok to buy a netbook just for programming purposes. The largest file would be the compiler; I do not see the actual programs taking up that much space. Thanks. (4 Replies)
Discussion started by: N-Training
4 Replies

2. What is on Your Mind?

What was your first computer?

Hey, the What Do You Do for a Living thread got me thinking about this. My first "computer" was a Timex Sinclair that I built from a kit. I also spent many hours painstakingly programming a Commodore Vic20 to display graphics and sound (and save them on that slooooow tape drive). My first "real"... (26 Replies)
Discussion started by: dday
26 Replies

3. UNIX for Dummies Questions & Answers

Unix file list customisation

I have a directory ContentAreas inside that i have many subdirectores I want the list of all the files inside those sub directories with the complete path for instance if the file fEthicalRetailOverview.xml is inside the Documents folder LPEthicalRetail then the the path should come out... (5 Replies)
Discussion started by: sayan_mitra
5 Replies

4. UNIX for Advanced & Expert Users

who - PC Computer name

Does anyone know of a way of identifying the PC / client name rather than IP address via who or some other AIX command (5.3). (4 Replies)
Discussion started by: gefa
4 Replies

5. UNIX for Dummies Questions & Answers

xwindow on old computer

hello at first sorry for my english... i know it isn't good but i hope you can understand me i want to install xwindow on my old pentium133MHz, 49MB ram memory, graphic card - stb horizon64 1MB (with old monochromatic monitor - horizontal 30.6-36.0, vertical 50-90) all this under redhat6.1...... (1 Reply)
Discussion started by: pgas
1 Replies

6. Programming

getting computer name

Hi all! Is there any function to get the name from a computer by the IP adresse? Thank you in advance! Greetings Mario (2 Replies)
Discussion started by: coredump2003
2 Replies

7. UNIX for Dummies Questions & Answers

mailx sender address customisation

Hi All, I'm on UNIX -Solaris... I'm trying to send mail usin Mailx..... The script is working fine and attachments are also being sent.... BUT, when I receive the mail,, the sender address shown is the unix login id name.... Any way by which I could manipulate this in my script command or any... (1 Reply)
Discussion started by: vasan_srini
1 Replies
Login or Register to Ask a Question