View Single Post
  #4  
Old 03-19-2012, 09:25 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Reading the file locally should be pretty straight forward. There is an example in the SecureCRT Scripting Guide, in a section titled Read Data from Separate Files: Hosts, Commands,
which shows how to read data from local files and send data to the remote.

I think you'll probably need a combination of the ReadDataFromFile() function shown in that example, and you'll need to create a function or subroutine which appends the data to the text file.

How do you currently append the data to the file?

For example, can you use a command like:
"cat 'some data' >> file.txt"
or
"sed 's/()/(public)/g' file.txt"?
Or, do you need to manually edit a text file on the remote and have a script drive the editor to make the change?
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote