Previous Next
Opalis Integration Pack for UNIX > Objects > Insert Line

Insert Line
The Insert Line object is used to insert a line into a text file at a position that you specify.
How it is used
Use the Insert Line object to insert additional lines in a text file.
Configuration
To configure the Insert Line object you need to know the path and filename of the file that you want to add the line to, the text that you want to add, and the line number under which you want to add the text.
Details tab
 
File
Type the path and filename of the file that you want to add the text to.
Text
Type the text that you want to insert into the file, or insert a Published Data item.
Line number
Type the line number after which you want to insert the new text. For example, if you type 50, the object will place your text on line 50. If the line number that you typed is greater than the number of lines in the file, the object will place your text on the last line.
Connection tab
You must configure a connection to a UNIX computer before you can use this object. To configure a connection, see Connecting to a UNIX Server for instructions.
Select the connection name that you want to use from the Server drop-down list.
Available Published Data
 
Name
Description
SSHCmdOutput
The output from the executed SSH command.
Status Message
The status message for this object.
File name with path
The file name and path of the file that you want to insert lines into.
Full text of the file
The full text of the file that you want to insert lines into.
Line Text
The text of the line or lines that you are inserting.
Line Number
The line number where you are inserting the text.
Number of lines
The total number of lines in the file.
Common Published Data

Previous Next