Re: [gentoo-user] {OT} wput with weird characters

2007-09-01 Thread Michal 'vorner' Vaner
Hello

On Sat, Sep 01, 2007 at 03:45:54AM +0200, Alex Schuster wrote:
 Grant writes:
 
wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt
  
   Did you try using ' around the whole argument? Like
  
   wput -A ... 'ftp://txt'?
 
  That did it.  Thanks everyone!
 
 Hmm... there really should be no difference whether you put the whole string 
 between single quotes or just escape the ! and . For the application you 
 start it is not even possible to see which notation you used.

Sure, but I never know which char I need to escape and which I don't.
This way I do not care - less space to escape it in bad way.

-- 
You can't have everything... where would you put it?
-- Steven Wright

Michal 'vorner' Vaner


pgpU3LC6H29eF.pgp
Description: PGP signature


[gentoo-user] {OT} wput with weird characters

2007-08-31 Thread Grant
I need to periodically upload a file to an ftp server, but the
password they've issued me has a '!' and a '' character in it.  I
tried escaping those characters like this:

wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt

but then it tells me the password isn't correct.  How can I use a
password like that with wput?

- Grant
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] {OT} wput with weird characters

2007-08-31 Thread Michal 'vorner' Vaner
Hello

On Fri, Aug 31, 2007 at 11:50:43AM -0700, Grant wrote:
 I need to periodically upload a file to an ftp server, but the
 password they've issued me has a '!' and a '' character in it.  I
 tried escaping those characters like this:
 
 wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt

Did you try using ' around the whole argument? Like

wput -A ... 'ftp://txt'?

-- 
This message has optimized support for formating.
Please choose green font and black background so it looks like it should.

Michal 'vorner' Vaner


pgpUc2aJLxAUd.pgp
Description: PGP signature


Re: [gentoo-user] {OT} wput with weird characters

2007-08-31 Thread Willie Wong
On Fri, Aug 31, 2007 at 11:50:43AM -0700, Grant wrote:
 I need to periodically upload a file to an ftp server, but the
 password they've issued me has a '!' and a '' character in it.  I
 tried escaping those characters like this:
 
 wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt
 
 but then it tells me the password isn't correct.  How can I use a
 password like that with wput?
 

Maybe you can try putting the username and password combination in a .wputrc 
file? 

W
-- 
Willie W. Wong  [EMAIL PROTECTED]
408 Fine Hall,  Department of Mathematics,  Princeton University,  Princeton
A mathematician's reputation rests on the number of bad proofs he has given.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] {OT} wput with weird characters

2007-08-31 Thread Alex Schuster
Grant writes:

 I need to periodically upload a file to an ftp server, but the
 password they've issued me has a '!' and a '' character in it.  I
 tried escaping those characters like this:

 wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt

 but then it tells me the password isn't correct.  How can I use a
 password like that with wput?

Are you sure the password is correct, does it work with an interactive ftp 
program? I just tried that, and it worked, with exactly the same password 
you used.

Alex
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] {OT} wput with weird characters

2007-08-31 Thread Grant
  I need to periodically upload a file to an ftp server, but the
  password they've issued me has a '!' and a '' character in it.  I
  tried escaping those characters like this:
 
  wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt

 Did you try using ' around the whole argument? Like

 wput -A ... 'ftp://txt'?

That did it.  Thanks everyone!

- Grant
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] {OT} wput with weird characters

2007-08-31 Thread Alex Schuster
Grant writes:

   wput -A file.txt ftp://username:abc\!123\@ftp.example.com/file.txt
 
  Did you try using ' around the whole argument? Like
 
  wput -A ... 'ftp://txt'?

 That did it.  Thanks everyone!

Hmm... there really should be no difference whether you put the whole string 
between single quotes or just escape the ! and . For the application you 
start it is not even possible to see which notation you used.

Alex
-- 
[EMAIL PROTECTED] mailing list