Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need help making a script that would do this

This is what I would do manually in terminal (I will be using the .getmusic script from 360 percents to download myspace music):

cd /home/eric/Music

to make sure music gets downloaded to /home/eric/Music:


I would like to be able to enter the clipboard text automatically (I don't know how to) in place of "Artist"

music is downloaded to /home/eric/Music in .mp3 format

scp -r /home/eric/Music/* root@

copies music to Ipod via SSH

share|improve this question
It's not really efficient to scp all files in ~/Music, especially if the folder gets big. – Lekensteyn Mar 6 '11 at 9:26
up vote 4 down vote accepted

Create and make it executable (chmod +x

cd /home/eric/Music
/home/eric/ "$*"
scp -r /home/eric/Music/* root@


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.