I know nuts about unix programming so pls dun laugh ur head off or tear off ur hairs at my questions.
Pls have a look at my Bourne Shell Script:
ftp remotehost << StartOfFtp
user root root
There are two remote folders path (/opt/user & /data) which I will access and both contains data files (.log). /data folder will continuously add in new .log files. So what this section will do is to compare the data files in /data folder with the data files in the /opt/user. For data files that exists in /opt/user will not be copied over while data files that does not exists in /opt/user will be copied over and renamed (What I mean the filename will be appended adding a LBS_ in the front). Then I will then ftp the data files which does not exists in /opt/user to the local folder path /tomcat/webapps/chart/data
ls >> /result
su user << StartUser
1) Is my coding correct so far? ok exclude the /* */(Sorry I am now learning java so pls excuse me)
2)I am stuck as how to continue the section explained in the /* */. Can anyone give me an example script and an explaination? I am really at my wits end and is starting to tear my hair apart trying to search for examples in the google.