Discussion:
How to auto-login and update command in a batch file?
rabbitxu
2002-01-26 10:09:55 UTC
Permalink
Hello :
I have other web site ,and I want to using a batch file to auto login and update in from cvs server.and the batch file in system crond.

Do you know how to auto-login and update command in a batch file?

Thank you.




=============================================================
http://news.163.com/editor/etalk.html ÍøÑÔÒ×ÓÆß×ì°ËÉàŽóŒÒ˵
http://love.163.com ŽºÌ컚»á¿ª£¬Äк¢Å®º¢ÒªÁµ°®¡«
http://vip.163.com ÍøÒ×VIPÓÊÏä 30ÃëÁ¢µÃ
Larry Jones
2002-01-26 20:25:05 UTC
Permalink
Post by rabbitxu
Do you know how to auto-login and update command in a batch file?
Don't. Log in, by hand, once, as the user the batch file will run as,
and don't log out. Logging in to CVS does not create any kind of a
connection, it just remembers the password so you don't have to type it
all the time.

-Larry Jones

I've got PLENTY of common sense! I just choose to ignore it. -- Calvin
James Knowles
2002-01-27 00:03:26 UTC
Permalink
Post by rabbitxu
I have other web site ,and I want to using a batch file
to auto login and update in from cvs server.and the batch
file in system crond.
Do you know how to auto-login and update command
I use the following methods in different circumstances, all relying on ssh
for security:

Set up ssh to use public/private key authentication so it does not require a
password. Then cron simply needs to do "cvs update -d" periodically. This
prevents passwords and data from going over the Internet unencrypted.

Alternately, you can do update locally and use ssh+rsync to copy data en
masse. Again ssh encrypts.

I've not used ssh as a port-forwarding proxy very much, but that is another
option that would work.
--
Every time government is forced to act, we lose something in self-reliance,
character and initiative.
- Herbert Hoover, speech, 1929
James Knowles
2002-01-27 00:06:38 UTC
Permalink
Post by Larry Jones
Post by rabbitxu
Do you know how to auto-login and update command in a batch file?
Don't. Log in, by hand, once,
I guess the detail that is not clear is whether this is done over an
insecure network.
--
It is possible to see peril in the finding of ultimate perfection. It is
clear that [it] contains its own fixity. In such perfection, all things move
towards death.
- Paul "Muad'Dib" Atreides, "Dune"
Larry Jones
2002-01-28 02:39:15 UTC
Permalink
Post by James Knowles
Post by Larry Jones
Post by rabbitxu
Do you know how to auto-login and update command in a batch file?
Don't. Log in, by hand, once,
I guess the detail that is not clear is whether this is done over an
insecure network.
That is an orthogonal issue.

Continue reading on narkive:
Loading...