LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2006, 01:02 AM   #1
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Rep: Reputation: 15
Question small program Semi newbie


Ok i am sure this is some easy fix that i just dont know about but i am trying to make a small program that uses kalarm to triger my own .sh script to back up a folder. I can run it and it gets passed zipping the folder and oping a ftp connection but then it stops waithing for me to enter the password / user name. if some one can tell me what is wrong or what i need to change please do so. thanks

#!/bin/sh

zip -r /test.zip /root/Desktop/vpn
cp /test.zip /root/Desktop
ftp -u ftp.ibackup.com # gets to this point then waits for the password i get a ftp>.
user username password
lcd /root/Desktop
cd /
put test.zip
quit
 
Old 04-21-2006, 02:04 AM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
Why write a program to let Kalarm do the job if you can let cron trigger your .sh script ?

here's howto use it.

http://www.unixgeeks.org/security/ne...ix/cron-1.html
 
Old 04-21-2006, 05:26 PM   #3
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Original Poster
Rep: Reputation: 15
that is not the problem it is the script i have not run it on kalarm yet.
 
Old 04-22-2006, 02:52 AM   #4
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
Ok my mistake I thought the script worked but didn't work with Kalarm. Well .. this is what i used to use.

Code:
open clan-aoA.com
usernamehere
passwordhere
cd www
cd members
mput *.jpg
bye
perhaps this helps you're case..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Semi-newbie using SuSE e6003 LinuxQuestions.org Member Intro 3 01-22-2007 09:35 PM
newbie with semi clue needs help please. 0wner Slackware - Installation 2 10-25-2005 05:37 PM
Another (semi) Newbie TheMaxPower LinuxQuestions.org Member Intro 1 05-28-2005 08:02 PM
Linux semi-newbie and Wine vary newbie geovolt_os1 Linux - Software 4 04-19-2005 11:03 AM
help a semi-newbie out roYal Linux - Newbie 2 04-08-2004 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration