2004年01月13日

perl でFTP

use Net::FTPを使えば簡単
&ftp('サーバー名','ユーザ名','パスワード','UPするディレクトリの場所','ファイルネーム');
みたいにして使う

#!/usr/local/bin/perl

sub ftp{

use Net::FTP;

local ($server,$user,$pass,$dir,$f_name) = ($_[0],$_[1],$_[2],$_[3],$_[4]);

$ftp = Net::FTP->new("$server", Debug => 1);
$ftp->login("$user", "$pass");
$ftp->cwd("$dir");
$ftp->binary();
$ftp->put("$f_name");
$ftp->quit;
}
}

投稿者 Okihiro : 2004年01月13日 16:49
コメント

The first step to getting the things you want out of life is this: Decide what you want.

Posted by: penis enlargement : 2005年11月18日 07:38

Life is a fatal complaint, and an eminently contagious one.

Posted by: hgh : 2005年11月18日 09:32

Life is a fatal complaint, and an eminently contagious one.

Posted by: hgh : 2005年11月18日 18:41

Life is a fatal complaint, and an eminently contagious one.

Posted by: fleshlight : 2005年11月19日 02:02

A great marriage is not when the `perfect couple` comes together. It is when an imperfect couple learns to enjoy their differences.

Posted by: penis patch : 2005年11月21日 08:33

Not a shred of evidence exists in favor of the idea that life is serious.

Posted by: penis enlargement : 2005年11月25日 03:45

Not a shred of evidence exists in favor of the idea that life is serious.

Posted by: penis enlargement : 2005年11月25日 06:43

Not a shred of evidence exists in favor of the idea that life is serious.

Posted by: penis enlargement : 2005年11月25日 09:18

Nearly all marriages, even happy ones, are mistakes: in the sense that almost certainly (in a more perfect world, or even with a little more care in this very imperfect one) both partners might be found more suitable mates. But the real soul-mate is the one you are actually married to.

Posted by: fleshlight : 2005年11月28日 23:39

Nearly all marriages, even happy ones, are mistakes: in the sense that almost certainly (in a more perfect world, or even with a little more care in this very imperfect one) both partners might be found more suitable mates. But the real soul-mate is the one you are actually married to.

Posted by: penis pills : 2005年11月29日 00:06

Never ever exceed the speed limit!

Posted by: Online Slots : 2006年01月14日 07:35

What is the meaning of life? Figure it out please.

Posted by: Casino Game : 2006年01月14日 07:46

Dont ever blame anyone else for your own shortcomings.

Posted by: No Download Casino : 2006年01月14日 07:49

How many nerds does it take to change a lightbulb?

Posted by: Internet Casino : 2006年01月14日 09:52

You should always strive to reach an epiphany.

Posted by: No Download Casinos : 2006年01月14日 09:52

Live and live well.

Posted by: Texas Holdem Poker : 2006年01月17日 09:33

Castles were built not in one day.

Posted by: Texas Holdem : 2006年01月17日 09:36

Only fools fail to vote.

Posted by: Texas Hold Em : 2006年01月17日 09:39

Never glamorize evil, it can become spell binding.

Posted by: Texas Hold 'Em : 2006年01月17日 09:41

There is no pardon for a felony.

Posted by: Slots : 2006年01月17日 10:12

One day you too will visit the angels.

Posted by: Online Bingo : 2006年01月17日 10:19

I cannot remember the last time that had a president has dissapointed me more.

Posted by: Flash Casinos : 2006年01月17日 11:07

Every tree felled, is a disaster in itself.

Posted by: Poker Tournaments : 2006年01月17日 13:42

You can make a difference in someones life. All you have to do is try.

Posted by: Online Casino : 2006年01月19日 14:54

Why do people poison themselves with toxins? Quit smoking all ready.

Posted by: Flash Casino : 2006年01月19日 15:05

Hey, nice day

Posted by: sports betting : 2006年01月19日 20:45

Go Patriots!

Posted by: superbowl betting : 2006年01月19日 21:18

go raiders!

Posted by: superbowl odds : 2006年01月19日 21:30

Hi

Posted by: super bowl betting : 2006年01月19日 21:52

hey there

Posted by: nfl odds : 2006年01月19日 22:01

hello there

Posted by: football betting : 2006年01月19日 22:30

Live and live well.

Posted by: Texas Holdem Poker : 2006年01月20日 11:12

Castles were built not in one day.

Posted by: Texas Holdem : 2006年01月20日 11:14

Every tree felled, is a disaster in itself.

Posted by: Poker Tournaments : 2006年01月20日 11:16

Never glamorize evil, it can become spell binding.

Posted by: Texas Hold 'Em : 2006年01月20日 11:17

Only fools fail to vote.

Posted by: Texas Hold Em : 2006年01月20日 11:18

Fancy yourself lucky, not everyone is so unlucky.

Posted by: Poker Room : 2006年01月20日 16:51

Satellite dishes should not be used to spy on people.

Posted by: Poker Rooms : 2006年01月20日 16:54

Television is so over rated.

Posted by: Poker Games : 2006年01月20日 17:13

I cant believe how time flies.

Posted by: Poker Online : 2006年01月20日 17:16

I picks em as I sees em..

Posted by: super bowl picks : 2006年01月20日 18:35

totally pumped about the superbowl

Posted by: superbowl picks : 2006年01月20日 18:40

There are great writers, and there are great authors, shakespeare is neither. Pooxie!

Posted by: superbowl odds : 2006年01月20日 18:41

Russia is less corrupt than the current bush administration.

Posted by: superbowl betting : 2006年01月20日 18:41

The mad hater was never mad.

Posted by: super bowl betting : 2006年01月20日 18:42

Love is the only thing that can buy happiness.

Posted by: natural breast enhancement : 2006年01月21日 03:34

bigger is better

Posted by: breast enhancement : 2006年01月21日 03:42

Excellent blog, very helpful, thank you for sharing, keep up the fine effort and excellent job. Click out: morgage rates or mortgage and mortgage loans site, mortgage calculator or by visiting at: http://www.i-mortgage-rates.com/ or http://www.a-mortgage-calculators.com/

Posted by: Mortgage Calculator : 2006年01月22日 06:47

Never ever forgive the sinners.

Posted by: football picks : 2006年01月23日 08:40

Allways remember, moderation is the key.

Posted by: nfl odds : 2006年01月23日 08:40

Only fools drink and drive. Stay sober.

Posted by: football betting : 2006年01月23日 08:40

Want to solve some problems? Fire half the police force, and higher more teachers. Education is everything.

Posted by: nfl picks : 2006年01月23日 08:41

life isnt a bowl of chocolates, its what it is

Posted by: online sportsbook : 2006年01月23日 08:43

The Producer Price index (PPI) last week showed a bigger-than-expected rise in wholesale prices,diamonds but little in the way of so-called core inflation,buscaqui.net which strips out volatile food and energy prices Earrings http://www.natalia-diamonds.com/Diamond-Rings/Diamond-Ring_ItemTag_DR-001.aspx

Posted by: Earrings : 2006年01月23日 13:17

CPI is certainly the big economic report of next week,crackmarketing.com said Timothy Ghriskey,Heart Shape Diamond in Cluster Diamond Ring Setting chief investment officer at Solaris Asset Management.press-base.com The Feds beige book and some of the manufacturing numbers will be looked at as well Ring http://www.natalia-diamonds.com/Diamond-Studs/Diamond-Stud-Earrings_ItemTag_DS-002.aspx

Posted by: Ring : 2006年01月24日 07:30

ergonomics and style dont mean squat

Posted by: diet pills : 2006年01月24日 15:53

love smokin fatties in amsterdam

Posted by: xenical : 2006年01月24日 15:58

micheal moore is a distortionist of american truth

Posted by: phentermine : 2006年01月24日 15:58

I cannot believe that this is the best that life has to offer.

Posted by: diet pills : 2006年01月24日 15:59

blogs, they are cool

Posted by: adipex : 2006年01月24日 16:02

beer soacked dreams of glory

Posted by: adipex : 2006年01月24日 16:05

Never believe a police officer, they are paid to uphold unjust laws.

Posted by: Play Texas Holdem : 2006年01月24日 17:44

I disagree with nearly everything that was said.

Posted by: Play Poker Online : 2006年01月24日 17:51

Crop circles exist, they are actually very easy to make.

Posted by: Poker Game : 2006年01月24日 20:34

Never leave children unsupervised.

Posted by: Play Poker : 2006年01月24日 20:55

You cannot replace a polar bear.

Posted by: Online Texas Holdem : 2006年01月24日 22:09

It's amazing what a man will do to feed his family.

Posted by: Online Poker Games : 2006年01月25日 09:43

It is not unlawful to fight injustice. It is unjust to uphold flawed laws.

Posted by: Online Poker Game : 2006年01月25日 10:12

Let us behave, arguing will not solve anything.

Posted by: Online Poker : 2006年01月26日 11:46

Dont need a knight to violate my life.

Posted by: No Limit Texas Holdem Poker : 2006年01月26日 15:38

We should abolish not capital punishment but instead abolish poverty.

Posted by: No Limit Texas Holdem : 2006年01月26日 15:41

Governments are corrupt and destructive.

Posted by: No Download Poker : 2006年01月26日 15:48

Dont talk to me about accountability, talk to the IRS.

Posted by: Live Poker : 2006年01月26日 15:48

was uuuuuupppp?

Posted by: nfl superbowl odds : 2006年01月26日 18:29

Always help the needy.

Posted by: Best Online Poker : 2006年01月27日 07:49

It's amazing what a duck sounds like in person.

Posted by: Internet Poker : 2006年01月27日 07:55

Venture capitalists are not that intelligent.

Posted by: Online Casino : 2006年01月28日 01:08

Eagles can fly high.

Posted by: Flash Casino : 2006年01月28日 10:35

We should redirect the funds wasted on war towards eradicating disease and poverty.

Posted by: Casinos Online : 2006年01月28日 23:04

Those who are generous are spiritually fulfilled.

Posted by: Internet Casinos : 2006年01月28日 23:12

Listen to those dishonest congressman, who do they think they are?

Posted by: Casino Online : 2006年01月28日 23:13

A quest should only be over when completed.

Posted by: Online Gambling : 2006年01月28日 23:13

Inspector gadget was a great man.

Posted by: Internet Gambling : 2006年01月29日 01:12

Always use the pedal to the left when approaching a designated school zone.

Posted by: Online Casinos : 2006年01月29日 02:45

watches
watch
replica watch
citizen watch
jewelry watch
man watch
seiko watch
fossil watch
watch music video
omega watch
heisman watch
watch tv
pocket watch
watch free movie online
swiss army watch
football ticket
watch winder
nba ticket
cartier watch
price watch
tag heuer watch
tag watch
casio watch
wrist watch
gucci watch
breitling watch
watch free movie
invicta watch
kenneth cole watch
bulova watch
nixon watch
guess watch
timex watch
womens watch
automatic pilot productpage watch
hockey ticket
swiss watch
swatch watch
tissot watch
watch repair
watch music video online
watch tv on the internet
designer watch
celtic productpage watch
watch band
anne klein watch
world of watch
michele watch
nike watch
basketball ticket
atomic watch
lady watch
third watch
skagen watch
watch tv online
watch free tv online
woman watch
hamilton watch
rado watch
luxury watch
fake watch
esq watch
geneva watch
pulsar watch
discount watch
watch movie online
diesel watch
relic watch
diamond watch
night watch
elgin watch
raymond weil watch
dive watch
watch free music video
whale watch
croton watch
dkny watch
concord watch
vintage watch
watch battery
watch box
wholesale watch
iwc watch
jacob watch
santa watch
oris watch
watch cases
luminox watch
mickey mouse watch
market watch
watch movie
freestyle watch
watch strap
coach watch
longines watch
citizen eco drive watch
army watch
used rolex watch
gold watch
antique watch
military watch
http://www.azbrandwatches.com
www.azbrandwatches.com

Posted by: watches : 2006年01月29日 03:49

Never say MOO to a cow, it's rude.

Posted by: Slots : 2006年01月29日 18:00

Take care of your body, no one else will.

Posted by: Acne Treatment : 2006年01月30日 01:32

Why doesn't the US government ever intervene when oil is not an issue?

Posted by: Breast Enhancement : 2006年01月31日 00:51

Never ask if you can ask a question.

Posted by: Breast Augmentation : 2006年01月31日 00:53

Carrots are a great source of vitamins.

Posted by: Diet Pills : 2006年01月31日 00:56

Saudi Arabia prison is as corrupt as the religion that indoctirates that enslaved country.

Posted by: Breast Enlargement : 2006年01月31日 01:02

No one claims to be perfect not even mr perfect!

Posted by: Hair Loss : 2006年01月31日 01:58

Let each person give one moment of kindness each day. And that's a minimum.

Posted by: Hair Removal : 2006年01月31日 02:11

Stick up for yourself.

Posted by: Male Enhancement : 2006年01月31日 10:44

A grain of sand contains a beautiful variety of microorganisms.

Posted by: Male Enlargement : 2006年01月31日 23:04

penis enlargement
penis enlargement pills
penis enlargement products
penis extender
http://www.online-manufacturer.com
www.online-manufacturer.com

Posted by: penis enlargement : 2006年02月01日 07:49

Maybe one day Microsoft will build a reliable product. Always expect the unexpected.

Posted by: Penile Enhancement : 2006年02月01日 11:20

Yawns are annoying.

Posted by: Penile Enlargement : 2006年02月01日 13:06

You can judge a person by how they treat an animal.

Posted by: Penis Enlargement : 2006年02月02日 01:39

Those who hunt for pleasure are mentally deranged.

Posted by: Penis Pills : 2006年02月02日 01:42

If you want to make someone feel better, make them feel attractive.

Posted by: Pheromones : 2006年02月02日 02:19

Imagine living in a plasma dish.

Posted by: Pheromone : 2006年02月02日 03:04

Always invest for the future.

Posted by: Cash Advance : 2006年02月02日 11:54

Oranges are nutritious and highly recommended.

Posted by: Cash Advances : 2006年02月04日 01:08

Always treat your pet with respect.

Posted by: Credit Repair : 2006年02月04日 01:18

Faxes are ancient history.

Posted by: Faxless Cash Advance : 2006年02月04日 03:24

Only a fool deceives the maker.

Posted by: Faxless Payday Loan : 2006年02月05日 03:35

It's odd how the government is against gambling, except for when it fills thier pockets.

Posted by: Instant Cash Advance : 2006年02月05日 03:41

Why does the US government give weapons to a country before they declare war against it? Could it be that Lockheed Martin financially benefits?

Posted by: No Fax Cash Advance : 2006年02月05日 03:43

Why cant the US government sign the treaty to ban landmines?

Posted by: No Fax Payday Loan : 2006年02月05日 03:49

Excellent blog, very helpful, thank you for sharing, keep up the fine effort and excellent job. Click out: debt consolodation and debt counseling or by visiting at: http://www.credit-loan.biz/ or at http://www.credit-loan.biz/Debt-Consolodation.aspx

Posted by: debt consolodation : 2006年02月08日 20:00

:)

Posted by: basketball betting : 2006年02月10日 11:05

Justice should never be in the eye of the beholder.

Posted by: sports betting : 2006年02月10日 12:04

Russia now is less corrupt than the current Bush (weenie)administration.

Posted by: basketball odds : 2006年02月10日 17:32

There are great writers, and there are great authors, shakespeare is neither. Pooxie!

Posted by: nba odds : 2006年02月10日 17:32

life isnt a bowl of chocolates, its what it is

Posted by: online sportsbook : 2006年02月10日 17:39

:)

Posted by: basketball betting : 2006年02月10日 17:39

Justice should never be in the eye of the beholder.

Posted by: sports betting : 2006年02月10日 17:40

The mad hater was never mad lately not.

Posted by: nba betting : 2006年02月10日 17:40

A newspaper in Iran is now holding a cartoon contest called Iran Holocaust Cartoon. Iran made Holocaust denial government policy when Iran foreign minister Manouchehr Mottaki said in December that remarks made by the Iran president that the Nazi mass murder of Jews during World War II was a myth. The move left investors both optimistic and over-extended -- as became apparent at the end of last week, wide band diamonds sapphires when the rally hit a roadblock -- and the stock market could be due for a bit more selling in the short term before attempting another run up, home equity loan analysts say apaynefreewedding.com http://www.apaynefreewedding.com/links.html

Posted by: apaynefreewedding.com : 2006年02月12日 02:55

the doo doo doo, dah dah dah, thats all I want to say to you.

Posted by: slot machine games : 2006年02月12日 19:04

bigger is better

Posted by: breast enhancement : 2006年02月12日 19:10

Love is the only thing that can buy happiness.

Posted by: natural breast enhancement : 2006年02月12日 19:14

Bears are beautiful and so are you.

Posted by: No Fax Payday Loans : 2006年02月14日 07:25

You should wash your clothe and sheets on a regular basis.

Posted by: Online Cash Advance : 2006年02月14日 07:25

There is no such thing as the sandman.

Posted by: Online Payday Loans : 2006年02月14日 07:35

Pishing should be illegal.

Posted by: Pay Day Loan : 2006年02月1