Sent: Friday, August 22, 2003 10:07 AMSubject: Re: FTP and [shell]I must be missing something.Same directory:-- sheltest.sh --#!/bin/sh# Testingls-- shelltest.sh ---- shelltest.html --[shell]shelltest.sh[/shell]
[shell]sudo shelltest.sh[/shell]
[shell]/Applications/4DWebSTAR/WebServer/DefaultSite/gallery/shelltest.sh[/shell]
[shell]sudo/Applications/4DWebSTAR/WebServer/DefaultSite/gallery/shelltest.sh[/shell]
-- shelltest.html --At least one of these should work correct? It's not returning anything.-- Matthew C. BohneWeb DeveloperSandusky Register314 W. Market St.Sandusky, OH 44870419-625-5500 ext. 253matthewbohne@sanduskyregister.comhttp://www.sanduskyregister.comOn Friday, August 22, 2003 11:06 AM, WebDna @ wrote:>Hi,>>Here is how it works.>>Create a file and name it whatever. I named mine shellftp.sh for ease of>recognition.>>-- shellftp.sh>#dataftp>#ftp script>#>ftp -inv <open ftp.site.com>user username password>binary>put add>quit>-- end shellftp.sh>>now you will need to modify the above.>1. open ftp.site.com : this becomes the ftp address you are logging into.>Could be IP or domain, etc.>2. user username password: change username to your username and password to>your password. Leave the prefix of user alone.>3. binary: this could also be ascii>>That is all the changes.>>Now you will want to set the permissions so that the webuser can execute>this or you will need to do a sudo and change users.>>Once permissions are set you will call it vis a shell context.>>[shell]/path/to/shellftp.sh[/shell]>or>[shell]sudo /path/to/shellftp.sh[/shell]>depending on how you set permissions.>>The / willt ake you to the root level of the Unix (OSX which is just a>bastardized BSD) server.>>1.) / = root>2.) ./ = same directory you are currently in>3.) ../ = up one directory>>Hope this helps.>Ronny Mc>>>----- Original Message ----- >From: "Velma Kahn" >To: "WebDNA Talk" >Sent: Friday, August 22, 2003 7:09 AM>Subject: Re: FTP and [shell]>>>> I need to do something like this too. Is there a reason regular OSX>> command-line FTP can't work? It seems like webdna@inkblotmedia.com'sshell>> script uses regular FTP? Would some knowledgeable soul point me to some>> documentation for doing FTP via shell scripts (I don't know enough to>> understand the shell script example well enough to be sure I know how to>> modify it for my purposes, and I don't know how to run it via my shell>> access to my server to test it). Also--I think this might be in the>> archives, but would someone who knows be willing to reiterate, in:>> [shell]/path/to/shellftp.sh[/shell]>> where does that "/" take you to--the virtual root of the web site?>>>> Velma>>>> At 02:35 AM 8/22/2003, you wrote:>> >You can also use curl to do this, it's already there in osx.>> >>> >Man curl>> >(cuz I've never actually done it)>> >>> >>> > >>>> > >>>> > >>> Best approach is to just write a unix shell script -- to do the ftp>stuff>> > >>> that you want -- then use the WebDNA [shell] to just execute that>> > >> script...>> > >>>>> > >>> On 8/21/03 4:22 PM, "Matthew Bohne">>> > >>> wrote:>> > >>>>> > >>>> Running WebCat 4.5 on an OSX Xserve>> > >>>>>> > >>>> I need to use [shell] to run an ftp command to put a file on a>different>> > >>>> server on the network. How do I string commands together?>> > >>>>>> > >>>> [shell]ftp [ftp_server] ; [user] ; [pass] ; etc. [/shell]>> > >>>>>> > >>>> Can I even do what I'm trying to do without a 3rd party ftp>program?>> > >>>>> >>> > -- Aaron Lynch -->> > -- C.T.O. NineWire Digital Solutions -->> >>> >-- Artificial intelligence is no match for natural stupidity. -->> >>>>> ---------------------------------------->> Velma Kahn>> Glory Day Software Company>> 200 Tanager Ln NW, Floyd, Virginia 24091, U.S.A.>> phone: 540-745-6469 * fax: 651-321-4884>> email: vkahn@glorydaysoftware.com>> http://www.glorydaysoftware.com>> http://www.communitymade.com>> http://www.floydcrafts.com>>>>>> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to>Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
My suggestion would be to run this from commandline to see what it outputsor see what errors you get.on commandline> ./shelltext.shIf it list all the files in that directory then it is working. Otherwise itshould give you an error then you can start debugging.Or you can do it like Kalin offered (the mail came in as I was writingthis).:)----- Original Message ----- From: "Matthew Bohne" To: "WebDNA Talk" Sent: Friday, August 22, 2003 10:07 AMSubject: Re: FTP and [shell]I must be missing something.Same directory:-- sheltest.sh --#!/bin/sh# Testingls-- shelltest.sh ---- shelltest.html --[shell]shelltest.sh[/shell]
[shell]sudo shelltest.sh[/shell]
[shell]/Applications/4DWebSTAR/WebServer/DefaultSite/gallery/shelltest.sh[/shell]
[shell]sudo/Applications/4DWebSTAR/WebServer/DefaultSite/gallery/shelltest.sh[/shell]
-- shelltest.html --At least one of these should work correct? It's not returning anything.-- Matthew C. BohneWeb DeveloperSandusky Register314 W. Market St.Sandusky, OH 44870419-625-5500 ext. 253matthewbohne@sanduskyregister.comhttp://www.sanduskyregister.comOn Friday, August 22, 2003 11:06 AM, WebDna @ wrote:>Hi,>>Here is how it works.>>Create a file and name it whatever. I named mine shellftp.sh for ease of>recognition.>>-- shellftp.sh>#dataftp>#ftp script>#>ftp -inv <open ftp.site.com>user username password>binary>put add>quit>-- end shellftp.sh>>now you will need to modify the above.>1. open ftp.site.com : this becomes the ftp address you are logging into.>Could be IP or domain, etc.>2. user username password: change username to your username and password to>your password. Leave the prefix of user alone.>3. binary: this could also be ascii>>That is all the changes.>>Now you will want to set the permissions so that the webuser can execute>this or you will need to do a sudo and change users.>>Once permissions are set you will call it vis a shell context.>>[shell]/path/to/shellftp.sh[/shell]>or>[shell]sudo /path/to/shellftp.sh[/shell]>depending on how you set permissions.>>The / willt ake you to the root level of the Unix (OSX which is just a>bastardized BSD) server.>>1.) / = root>2.) ./ = same directory you are currently in>3.) ../ = up one directory>>Hope this helps.>Ronny Mc>>>----- Original Message ----- >From: "Velma Kahn" >To: "WebDNA Talk" >Sent: Friday, August 22, 2003 7:09 AM>Subject: Re: FTP and [shell]>>>> I need to do something like this too. Is there a reason regular OSX>> command-line FTP can't work? It seems like webdna@inkblotmedia.com'sshell>> script uses regular FTP? Would some knowledgeable soul point me to some>> documentation for doing FTP via shell scripts (I don't know enough to>> understand the shell script example well enough to be sure I know how to>> modify it for my purposes, and I don't know how to run it via my shell>> access to my server to test it). Also--I think this might be in the>> archives, but would someone who knows be willing to reiterate, in:>> [shell]/path/to/shellftp.sh[/shell]>> where does that "/" take you to--the virtual root of the web site?>>>> Velma>>>> At 02:35 AM 8/22/2003, you wrote:>> >You can also use curl to do this, it's already there in osx.>> >>> >Man curl>> >(cuz I've never actually done it)>> >>> >>> > >>>> > >>>> > >>> Best approach is to just write a unix shell script -- to do the ftp>stuff>> > >>> that you want -- then use the WebDNA [shell] to just execute that>> > >> script...>> > >>>>> > >>> On 8/21/03 4:22 PM, "Matthew Bohne">>> > >>> wrote:>> > >>>>> > >>>> Running WebCat 4.5 on an OSX Xserve>> > >>>>>> > >>>> I need to use [shell] to run an ftp command to put a file on a>different>> > >>>> server on the network. How do I string commands together?>> > >>>>>> > >>>> [shell]ftp [ftp_server] ; [user] ; [pass] ; etc. [/shell]>> > >>>>>> > >>>> Can I even do what I'm trying to do without a 3rd party ftp>program?>> > >>>>> >>> > -- Aaron Lynch -->> > -- C.T.O. NineWire Digital Solutions -->> >>> >-- Artificial intelligence is no match for natural stupidity. -->> >>>>> ---------------------------------------->> Velma Kahn>> Glory Day Software Company>> 200 Tanager Ln NW, Floyd, Virginia 24091, U.S.A.>> phone: 540-745-6469 * fax: 651-321-4884>> email: vkahn@glorydaysoftware.com>> http://www.glorydaysoftware.com>> http://www.communitymade.com>> http://www.floydcrafts.com>>>>>> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to>Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"WebDna @"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
MacAuthorize (1999)
RE: Loss in form (1998)
Smith Micro - no competition (2000)
F*** you (1998)
version 2 for NT (1997)
security (1997)
WebCatalog complains that the service is not running. (1998)
[delete] problem (1997)
Snake Bites (1997)
searchable list archive (1997)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
What are SMSI's upgrade policies? (2003)
Searching Numbers (2004)
dynamic list of form variables (2003)
Closing Databases (1998)
Sort Order on a page search (1997)
PCS Frames (1997)
Free Utility (2003)
Help!!!! (1997)
Condensing the CART numeric sequence (2002)