Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal karniv0re's Journal: Consulting Is Bullshit

So I started a consulting gig a while back to design a website for a psychotherapist.

Many months later, she's finally wanting to get on with it. This isn't the first consulting job I've offered to do where the client flaked. Super annoying. Anyway, I guess we might be getting on with it.

So we have an account on Host Gator. You don't get SCP or anything cool like that. Just FTP. So I'm finding I'm having trouble remembering how to auto-login to FTP on Linux. So here's how:

You need a ~/.netrc file. This was the first Google link I saw:

http://www.mavetju.org/unix/netrc.php

(In case it ever dies, you need to do the following):

[~] edwin@k7>ls -al .netrc
-rw------- 1 edwin wheel 246 Aug 27 16:14 .netrc

Layout of the .netrc
Machine definitions

The first part of the .netrc is filled up with host-definitions:

machine ftp.freebsd.org
        login anonymous
        password edwin@mavetju.org

machine myownmachine
        login myusername
        password mypassword

Macro definitions

This part of the .netrc consists of macros which can be used to perform automated tasks:

macdef uploadtest
        cd /pub/tests
        bin
        put filename.tar.gz
        quit

macdef dailyupload
        cd /pub/tests
        bin
        put daily-$1.tar.gz
        quit

This discussion has been archived. No new comments can be posted.

Consulting Is Bullshit

Comments Filter:

BLISS is ignorance.

Working...