i have expect script below named winnwftp.
how may run @ start up? i've added startup program of "expect winnwftp" ftp not update website. because don't have internet connection @ start when "expect winnwftp" runs?
code:#!/bin/expect # proper header expect script. # testing # run root, of course.??? send "ftp starting.....\n" # create new file how? # use existing /home/mike/update.html # start , run ftp process spawn ftp winchesternw.org.uk expect ":" send "userid\r" expect "password:" send "password\r" expect "ftp>" send "put /home/mike/update.html /public_html/update.html\r" expect "ftp>" send "bye\r"
you add sleep command @ beginning of script, network has time go before script commands invoked.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Running Expect at start up
Ubuntu
Comments
Post a Comment