Sponsored Content
Full Discussion: Expect and interact
Top Forums UNIX for Advanced & Expert Users Expect and interact Post 302935008 by blackrageous on Thursday 12th of February 2015 10:40:48 AM
Old 02-12-2015
You are using a here-document but there is no closing EOF.
When you say <<EOF...there should be an EOF to close the here-document.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

can a shell script interact with database?

Hi All, Language like C,Java can interact with database..and can use database information .. can a shall script do this? if yes thn plz guide me..... thankx (7 Replies)
Discussion started by: johnray31
7 Replies

2. Shell Programming and Scripting

Expect - Interact output hangs when large output

Hello, I have a simple expect script I use to ssh to a workstation. I then pass control over to the user with interact. This script works fine on my HP and Mac, but on my Linux Desktop, I get a problem where the terminal hangs when ever I execute a command in the interact session that requires a... (0 Replies)
Discussion started by: natedog
0 Replies

3. UNIX for Advanced & Expert Users

Interact to windows server from unix box

Hello - My requirement is like this... I have flat file which is sitting in windows server... My shell script is running in unix box. Shell script loads the flat file into oracle through sqlloader. So script needs to pickup the flat file from windows box. I need to refer windows location in... (8 Replies)
Discussion started by: govindts
8 Replies

4. Shell Programming and Scripting

How to make shell script interact with program

Hello all! I have a C program that runs on a loop, prompting the user for input until it is exited. I want to create a shell script that can run this program and provide input. How can I do this? I have investigated 'expect' and piping to stdin, but haven't had any success. Any help is... (2 Replies)
Discussion started by: radish04
2 Replies

5. UNIX for Dummies Questions & Answers

Expect "interact" fails when called from another script

So, I have an expect script (let's call it expect.exp) that takes 3 arguments. It logs into a remote server, runs a set of commands, then hands control over to the user by the "interact" command. If I call this script from the command line, it works properly. Now I'd like to apply this script... (2 Replies)
Discussion started by: treesloth
2 Replies

6. Shell Programming and Scripting

Expect script exiting too fast if used without interact.

Hi I'm working on an Expect script that is supposed to log-into a remote server and run some steps and exit. In the script I first spawn a 'ssh' session to the server and then after logging in I 'send' all the necessary steps ( with a '\r' at the end, so that they get automatically executed the... (3 Replies)
Discussion started by: clakkad
3 Replies

7. Shell Programming and Scripting

Scripts to Interact with Webpages

Hi, Is it possible to have a script to interact with webpages. I want to create a script that logs a user into a specific site, and is able to get/post information. Would anyone give me instructions on how it's should be done, and where I can find information on starting it out. I know... (2 Replies)
Discussion started by: Pztar
2 Replies

8. Shell Programming and Scripting

can a nohup'ed ksh script interact with user

I have a long running ksh script that I need to run with "nohup" in the backgound which is all well and good but at the very start of the script it needes to output to the screen to query the user and accept a response before continuing. Any thoughts on how to accomplish this other than... (11 Replies)
Discussion started by: twk
11 Replies

9. Shell Programming and Scripting

Expect Scripting - Using the "interact" command?

Hello All, I am writing an Expect Script to execute some commands over ssh then exit the script. The script works just fine if I automate everything and assuming the correct password was entered. So this Expect Script gets executed from a Bash script... From the Bash script I pass along an... (0 Replies)
Discussion started by: mrm5102
0 Replies

10. Shell Programming and Scripting

Expect script - Interact help

Hi Guys, Further to my post yesterday I have got round the issue of not being able to use expect by using one of our unix machines to have the script running instead of the jumpbox itself. However my issue is I now have an extra bit it the script which is shh to the jumpbox which requires a ras... (1 Reply)
Discussion started by: mutley2202
1 Replies
LaTeXML::Document(3pm)					User Contributed Perl Documentation				    LaTeXML::Document(3pm)

NAME
"LaTeXML::Document" - represents an XML document under construction. DESCRIPTION
A "LaTeXML::Document" constructs an XML document by absorbing the digested LaTeXML::List (from a LaTeXML::Stomach), Generally, the LaTeXML::Boxs and LaTeXML::Lists create text nodes, whereas the LaTeXML::Whatsits create "XML" document fragments, elements and attributes according to the defining LaTeXML::Constructor. The "LaTeXML::Document" maintains a current insertion point for where material will be added. The LaTeXML::Model, derived from various declarations and document type, is consulted to determine whether an insertion is allowed and when elements may need to be automatically opened or closed in order to carry out a given insertion. For example, a "subsection" element will typically be closed automatically when it is attempted to open a "section" element. In the methods described here, the term $qname is used for XML qualified names. These are tag names with a namespace prefix. The prefix should be one registered with the current Model, for use within the code. This prefix is not necessarily the same as the one used in any DTD, but should be mapped to the a Namespace URI that was registered for the DTD. The arguments named $node are an XML::LibXML node. Accessors "$doc = $document->getDocument;" Returns the "XML::LibXML::Document" currently being constructed. "$node = $document->getNode;" Returns the node at the current insertion point during construction. This node is considered still to be `open'; any insertions will go into it (if possible). The node will be an "XML::LibXML::Element", "XML::LibXML::Text" or, initially, "XML::LibXML::Document". "$node = $document->getElement;" Returns the closest ancestor to the current insertion point that is an Element. "$document->setNode($node);" Sets the current insertion point to be $node. This should be rarely used, if at all; The construction methods of document generally maintain the notion of insertion point automatically. This may be useful to allow insertion into a different part of the document, but you probably want to set the insertion point back to the previous node, afterwards. Construction Methods "$document->absorb($digested);" Absorb the $digested object into the document at the current insertion point according to its type. Various of the the other methods are invoked as needed, and document nodes may be automatically opened or closed according to the document model. "$xmldoc = $document->finalize;" This method finalizes the document by cleaning up various temporary attributes, and returns the XML::LibXML::Document that was constructed. "$document->openText($text,$font);" Open a text node in font $font, performing any required automatic opening and closing of intermedate nodes (including those needed for font changes) and inserting the string $text into it. "$document->insertMathToken($string,%attributes);" Insert a math token (XMTok) containing the string $string with the given attributes. Useful attributes would be name, role, font. Returns the newly inserted node. "$document->openElement($qname,%attributes);" Open an element, named $qname and with the given attributes. This will be inserted into the current node while performing any required automatic opening and closing of intermedate nodes. The new element is returned, and also becomes the current insertion point. An error (fatal if in "Strict" mode) is signalled if there is no allowed way to insert such an element into the current node. "$document->closeElement($qname);" Close the closest open element named $qname including any intermedate nodes that may be automatically closed. If that is not possible, signal an error. The closed node's parent becomes the current node. This method returns the closed node. "$node = $document->isOpenable($qname);" Check whether it is possible to open a $qname element at the current insertion point. "$node = $document->isCloseable($qname);" Check whether it is possible to close a $qname element, returning the node that would be closed if possible, otherwise undef. "$document->maybeCloseElement($qname);" Close a $qname element, if it is possible to do so, returns the closed node if it was found, else undef. "$document->insertElement($qname,$content,%attributes);" This is a shorthand for creating an element $qname (with given attributes), absorbing $content from within that new node, and then closing it. The $content must be digested material, either a single box, or an array of boxes. This method returns the newly created node, although it will no longer be the current insertion point. "$document->insertComment($text);" Insert, and return, a comment with the given $text into the current node. "$document->insertPI($op,%attributes);" Insert, and return, a ProcessingInstruction into the current node. "$document->addAttribute($key=>$value);" Add the given attribute to the nearest node that is allowed to have it. AUTHOR
Bruce Miller <bruce.miller@nist.gov> COPYRIGHT
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. perl v5.10.1 2009-06-11 LaTeXML::Document(3pm)
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy