home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 254 
 Sean Dennis to All 
 curl trick 
 18 Jun 15 19:36:17 
 
Hello All,

If you noticed in the main script, I used cURL to upload the infopack to my 
website:

=== Cut ===
echo "user=username:password" | curl -K - -T ./mininfo.zip ftp://
=== Cut ===

(That's all on one line, BTW.)

What I'm doing there is telling cURL to ignore its normal configuration file 
and instead read the configuration from stdin.  What this accomplishes is 
allowing the command to run while not exposing the username or password to 
anyone who is currently logged into the system that might run a "ps" (show 
processes) command, therefore ensuring better security of my webhost's FTP 
site that I upload to.

--Sean

... Predestination was doomed from the start.
--- GoldED+/LNX 1.1.5-b20130910
 * Origin: Outpost BBS * Johnson City, TN, USA (1:18/200)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca