Sponsored Content
Top Forums Shell Programming and Scripting Another customisation for my computer Post 302101407 by davidY on Monday 1st of January 2007 08:34:21 AM
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..
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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

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

6. 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

7. 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
rhythmbox-client(1)						   User Commands					       rhythmbox-client(1)

NAME
rhythmbox-client - controls a running instance of rhythmbox SYNOPSIS
rhythmbox-client [--clear-queue] [--debug] [--enqueue=filename] [--help] [--hide] [--mute] [--next] [--no-present] [--no-start] [--notify] [--pause] [--play] [--play-pause] [--play-uri=uri] [--previous] [--print-playing] [--print-playing-format=format] [--print-volume] [--quit] [--set-volume=float] [--unmute] [--volume-down] [--volume-up] DESCRIPTION
rhythmbox-client is a tool for controlling an already running instance of rhythmbox. It is useful for remote control scripting or printing details of what is playing. OPTIONS
The following options are supported: --client-queue Empty the play queue before adding new tracks. --debug Display debug output. --enqueue=filename Add specified tracks already in the library to the play queue. -?, --help Show help options. --hide Hide the rhythmbox-client window. --mute Mute playback. --next Jump to next song. --no-present Do not present an existing rhythmbox-client window. --no-start Do not start a new instance of rhythmbox-client. --notify Show notification of the playing song. --pause Pause playback if currently playing. --play Resume playback if currently paused. --play-pause Toggle play/pause mode. --play-uri=uri Play a specified uri, importing it if necessary. --previous Jump to previous song. --print-playing Print the title and artist of the playing song. --print-playing-format=format Print the formatted details of the song. Refer to the extended description to see valid format options. Multiple options can be combined using quotes. For example "%tn %aa %tt", will print the track number fol- lowed by the artist and the title of the track. --print-volume Print the current playback volume. --quit Quit Rhythmbox. --set-volume=float Set the playback volume. --unmute Unmute playback --volume-down Decreate the playback volume. --volume-up Increase the playback volume. EXTENDED DESCRIPTION
rhythmbox-client accepts the following format options to be used with the --print-playing-format option: %at Album title %aT Album title in lowercase %aa Album artist %aA Album artist in lowercase %ay Release year of album %an Album disc number %aN Album disc number with leading zero %ag Album genre %aG Album genre in lowercase %tt Track title %tT Track title in lowercase %ta Track artist %tA Track artist in lowercase %tn Track number %tN Track number with leading zero %td Track duration %te Elapsed time of track EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/rhythmbox-client Executable for rhythmbox-client /usr/lib/rhythmbox/plugins Location of rhythmbox-client plugins. /usr/share/gtk-doc/html/rhythmbox Location of developer documentation for writing a rhythmbox-client plugin. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-media-player | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
rhythmbox(1), attributes(5) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2007. SunOS 5.11 3 Dec 2007 rhythmbox-client(1)
All times are GMT -4. The time now is 03:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy