Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'FTP script to do the same...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
FTP script to do the same...
Authored by: newformula on Mar 03, '05 09:59:08AM

I also have an ftp script which you can use to do the same thing, no transmit needed.

<code>
#!/bin/sh
HOST='your host goes here'
USER='username'
PASSWD='password'
FILE1='calendarname.ics'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
lcd /Users/kmason/Library/Calendars
cd public_path to phpical calendars folder
put $FILE1
quit
END_SCRIPT
exit 0
</code>

This can be edited for multiple files, just add FILE2, FILE3 etc lines as needed in the put section and in the top section on the script. Hope that makes sense.

Remember to make executable.



[ Reply to This | # ]
alteration
Authored by: newformula on Mar 03, '05 10:00:38AM

I left my user path in there. Remember to change it to your own!



[ Reply to This | # ]
FTP script to do the same...
Authored by: peragrin on Mar 03, '05 02:19:04PM

I use a stripped down version of that to ftp my bookmarks to my website. There is a plus to Mozilla/firefox's bookmarks in a single HTML file. World wide access in a small script.

I wouldn't use ftp to a personal machine. It's just not secure enough.



---
I thought once I was found but it was only a dream



[ Reply to This | # ]
FTP script to do the same...
Authored by: seancorfield on Mar 05, '05 05:05:50PM

Or, even shorter:

cd ~/Library/Calendars
ftp -V -u ftp://USER:PASSWD@REMOTEHOST/PATH/ myCal.ics 2>&1 > /dev/null

---
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



[ Reply to This | # ]