Sponsored Content
Top Forums Shell Programming and Scripting /usr/bin/expect script truncates data Post 302902590 by black_fender on Wednesday 21st of May 2014 08:54:26 AM
Old 05-21-2014
Quote:
Originally Posted by ygemici
why do you use interact
try change to "interact" to "expect eof" (or just remove "interact" ) and re-try

regards
ygemici
Already tried exactly this. replaced in my script the "interact" line with "expect eof" and it doesn;t work at all neither directly from shell, neither from crontab.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. Shell Programming and Scripting

#!/usr/bin/ksh Command Interpreter in a sh script

Hi, I have a developer that is trying to start a script with sh "scriptname". In the script, he is specifying #!/usr/bin/ksh as the command interpreter. For some reason sh is ignoring the #!/usr/bin/ksh. We are running Solaris 8. Does anyone have any ideas what could be causing this? Here... (3 Replies)
Discussion started by: ckeith79
3 Replies

3. Shell Programming and Scripting

Script can't see /usr/bin???

Hello all, I have the following script (still in early stages), and although I can't help but think that the problem is very simple, I can't think of a solution. My script can't see binaries in /usr/bin. This isn't a problem with my login shell as I can execute these commands OK there. I've... (1 Reply)
Discussion started by: michaeltravisuk
1 Replies

4. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

5. UNIX for Dummies Questions & Answers

Alias /usr/bin to /bin in profile

Hi! All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Discussion started by: dancerat
6 Replies

6. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

7. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

8. Shell Programming and Scripting

AIX -/usr/bin/expect shows output Don't know why.

Hi, I have been programming with the expect program for a while now and have create a series of menu driven checks for the operations team. One thing I have noticed is that I call a remote script and pass parameters and this is display on the screen....for example. Within the script ... (0 Replies)
Discussion started by: yakky
0 Replies

9. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies
term::interact::pager(n)					 Terminal control					  term::interact::pager(n)

__________________________________________________________________________________________________________________________________________________

NAME
term::interact::pager - Terminal widget, paging SYNOPSIS
package require Tcl 8.4 package require term::interact::pager ?0.1? term::interact::pager object text ?options...? object interact object done object clear object text text object configure object configure option object configure option value... object cget option _________________________________________________________________ DESCRIPTION
This package provides a class for the creation of a simple paging text display. CLASS API
The package exports a single command, the class command, enabling the creation of pager instances. Its API is: term::interact::pager object text ?options...? This command creates a new pager object with the name object, initializes it, and returns the fully qualified name of the object command as its result. The argument is the text to show, possibly followed by configuration options and their values. The options are explained in the sec- tion Configuration. OBJECT API
The objects created by the class command provide the methods listed below: object interact Show the pager in the screen at the configured location and start interacting with it. This opens its own event loop for the pro- cessing of incoming characters. The method returns when the interaction has completed. See section Interaction for a description of the possible interaction. object done This method can be used by user supplied actions to terminate the interaction with the object. object clear This method can be used by user supplied actions to remove the pager from the terminal. object text text This method can be used to change the text shown by the pager. The pager will reset the dispay to show the first line of the text at the top. object configure object configure option object configure option value... object cget option Standard methods to retrieve and configure the options of the pager. CONFIGURATION
A pager instance recognizes the following options: -in chan Specifies the channel to read character sequences from. Defaults to stdin. -out chan Specifies the channel to write the pager contents to. Defaults to stdout. -column int Specifies the column of the terminal where the left margin of the pager display should appear. Defaults to 0, i.e. the left-most column. -line int Specifies the line of the terminal where the top margin of the pager display should appear. Defaults to 0, i.e. the top-most line. -height int Specifies the number of lines of text to show at most in the display. Defaults to 25. -actions dict Specifies a dictionary containing additional actions, using character sequences as keys. Note that these sequences cannot override the hardwired sequences described in section Interaction. INTERACTION
A pager object recognizes the control sequences listed below and acts as described. The user can supply more control sequences to act on via the configuration, but is not able to overide these defaults. Cursor Up The text is scrolled down a single line, making one more line visible at the top. The pager will not react if the first line of the text is already shown. Cursor Down The text is scrolled up a single line, making one more line visible at the bottom. The pager will not react if the last line of the text is already shown. Page Up The text is scrolled down a page. The pager will not react if the first line of the text is already shown. Page Down The text is scrolled up a page. The pager will not react if the last line of the text is already shown. Enter/Return The interaction with the object is terminated. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category term of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
control, pager, terminal, text display COPYRIGHT
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net> term 0.1 term::interact::pager(n)
All times are GMT -4. The time now is 12:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy