Forgot to add the path:
Main Topics
Browse All TopicsI'm completely lost on this, as I haven't done many shell scripts. I need to have a simple shell script that simply reads the list of files in a folder (i.e. "/Users/Bob/Movies"), and submits them as a get on a URL to a website. For example, the list of files in the folder are:
1094ws.mov
1223ws.mov
3282ws.mov
the script would just comma delimit them and do some sort of curl, i.e.
curl http://www.myserver.com/sc
This is probably a 5 line script, but I've been working all morning searching for how to do this and I'm just lost. I specifically need it as a shell script since I'll put it in a cron job to run periodically. Also, I don't have to worry about strange file names or spaces or whatever my company puts the files in the directory in the first place, so I can safely assume they will always be named just like that.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
for some strange reason, curl wasn't interpreting the $variable on the curl line, so I had to make a slight modification as so:
firsturl="http://www.myser
completeurl=$firsturl"="$i
curl $completeurl
and this worked for my purposes. Thanks!
Business Accounts
Answer for Membership
by: KirrilianPosted on 2008-08-28 at 12:35:31ID: 22338890
try this:
Select allOpen in new window