[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: ftp a file from within SQR



hi,

1)
if you are running on unix or NT
look to the man page of netrc
this will give you some idea of how to automate this.
example:
---my .netrc file -----
machine solaris login sqribe password sqribe1
macdef copy
bi
cd /tmp
lcd /etc
put $1 $2
quit
-----fin----
# echo '$copy hosts hosts.ttt' | ftp solaris

2)
an other solution is to use RCP
look to man page rhosts

# rcp machine1:file1 machine2:file2


In SQR use the system command to execute these command

Franck,


Behnke, Greg M wrote:
>
> Hello,
> I'm looking for any hints from someone that may have done something along
> these lines.  What we are proposing to do is write an SQR that will create a
> flat file and then ftp the file to a remote file server.  Any input would be
> appreciated.
> Thx,
> Greg Behnke