Sponsored Content
Top Forums Shell Programming and Scripting Expect_out(buffer) works but it doesn't get all lines Post 302770420 by DGPickett on Friday 15th of February 2013 04:36:32 PM
Old 02-15-2013
That article suggests you may need an expanded buffer, and that it is usually the wrong way to achieve that end.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

expect_out(buffer) empty

I have only some info into my buffer, but after a rssi command I see the folowing lines expected into buffer but not present : rssi=-106 rssi=-109 I see in my buffer only the first part of the output, here you are a part of script : #!/usr/bin/expect -f #global expect_out match_max 10000000... (1 Reply)
Discussion started by: ugobale
1 Replies

2. Shell Programming and Scripting

Script works but doesn't with cron

Good morning, The script below without the hilited text successfully FTPs the files in question to the other server when it is called from the crontab. I don't want to establish an FTP connection when there are no files so I tried including the hilited lines to only establish an FTP connection... (6 Replies)
Discussion started by: philplasma
6 Replies

3. Shell Programming and Scripting

expect_out buffer no such variable running script background

I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer) errored out. Is there any factor influence when we run script in foreground and in background? ... (0 Replies)
Discussion started by: shellscripter
0 Replies

4. Shell Programming and Scripting

Script works but doesn't?

Hi everyone I'm new here so and I'm just starting to learn a bit of Solaris and I'm working on repairing 10 year old scripts for our system here at work. When I execute the commands at my prompt everything go's through smooth. I'm using gedit to edit my code because I'm still getting used to the... (4 Replies)
Discussion started by: 82280zx
4 Replies

5. Red Hat

Samba 3.0.33 (sorta) works, 3.5.4 doesn't

I'm trying to get a RHEL 5.4 base system to authenticate against a W2K8 domain With the stock samba-3.0.33, I can use wbinfo and getent just fine, but I cannot actually authenticate. Googling finally led to a bug that strongly suggests that 3.0.33 cannot and will never be able to ... (1 Reply)
Discussion started by: jnojr
1 Replies

6. Programming

[SOLVED] Flushing expect_out(buffer) inside a loop

Greetings, Having an issue with the expect_out(buffer). in a foreach loop through some switches I am grabbing some arp table information and writing it out to output files (1 each for each switch looped through). The first iteration works fine. the second iteration of the loop writes the... (0 Replies)
Discussion started by: SuperSix4
0 Replies

7. Programming

Flushing expect_out(buffer)

Can some one tell me how to flush expect_out(buffer)? below is my code expect -re {.*} {} expect "swpackages>*" send -i $con "trial.bat \r" set outcome $expect_out(buffer) expect "*continue*" set prevreport $expect_out(buffer) send "\r \r"; problem is :- I am getting "pre" stuffs... (0 Replies)
Discussion started by: cityprince143
0 Replies

8. Shell Programming and Scripting

Jumbled output in expect_out(buffer)

I have a code like this : set ipv6_acl_max_chars test_acl_max_chars123456a789%s%d2345678ww134rt789qa23456789012345%c89012%a56789012x4r67890test_acl_max_chars1234567890.01234aabcdob34567aBC0 spawn telnet $myip expect "Login:" { send "admin\r" } expect "Password:" {send "admin\r" }... (0 Replies)
Discussion started by: ylucki
0 Replies

9. Shell Programming and Scripting

Trying to parse expect_out(buffer)

trying to telnet to a device, list the files, and delete them. I can get the script to telnet and log in OK, and even issue the command to list out the files. I can't figure out how to parse the expect_out(buffer) and extract the file name for use in the delete command. the files list out like... (4 Replies)
Discussion started by: imatinkerer
4 Replies

10. Shell Programming and Scripting

SSh works but sftp doesn't for all users except root

I am sorry if i post in wrong Form. i have AIX server in which ssh works for all users but sftp only works for root user . it is too much important for me to solve this . Your help will be greatly appreciated. (1 Reply)
Discussion started by: khalid khanAIB
1 Replies
INEWS(1)						      General Commands Manual							  INEWS(1)

NAME
inews - send a Usenet article to the local news server for distribution SYNOPSIS
inews [ -h ] [ -D ] [ -O ] [ -R ] [ -S ] [ header_flags ] [ input ] DESCRIPTION
Inews reads a Usenet news article (perhaps with headers) from the named file or standard input if no file is given. It adds some headers and performs some consistency checks. If the article does not meet these checks (for example, too much quoting of old articles, or posting to non-existent newsgroups) then the article is rejected. If it passes the checks, inews sends the article to the local news server as specified in the inn.conf(5) file for distribution. OPTIONS
-h In the standard mode of operation, the input consists of the article headers, a blank line, and the message body. For compatibility with older software, the ``-h'' flag must be used. If there are no headers in the message, then this flag may be omitted. -O The default Organization header will be provided if none is present in the article or if the ``-o'' flag is not used. To prevent adding the default, use the ``-O'' flag. -D As a debugging aide, if the ``-D'' flag is used, the consistency checks will be performed, and the article will be sent to the stan- dard output, rather then sent to the server. -A -V -W For compatibility with C News, inews accepts, but ignores, the ``-A'', ``-V'' and ``-W'' flags. -N The C News ``-N'' flag is treated as the ``-D'' flag. -S If a file named .signature exists in the user's home directory, inews will try to append it to the end of the article. If the file cannot be read, or if it is too long (for example, more than four lines or one standard I/O buffer), or if some other problem occurs, then the article will not be posted. To suppress this action use the ``-S'' flag. -R If the ``-R'' flag is used then inews will reject any attempts to post control messages. header_flags Several headers may be specified on the command line, shown in the synopsis above as header_flags. Each of these flags takes a sin- gle parameter; if the value is more than one word (for example, almost all Subject lines) then quotes must be used to prevent the shell from splitting it into multiple words. The options, and their equivalent header, are as follows: a Approved c Control d Distribution e Expires f From w Followup-To n Newsgroups r Reply-To t Subject F References o Organization x Path prefix If the ``-x'' flag is used, then its value will be the start of the header. Any other host will see the site in the header, and therefore not offer the article to that site. The Path will always end not-for-mail. NOTES
If an unapproved posting is made to a moderated newsgroup, inews will try to mail the article to the moderator for posting. It will query the remote news server for a moderators listing. If that doesn't succeed, it will fallback to using the local moderators(5) file to deter- mine the mailing address. If no address is found, it will use the inn.conf file to determine a ``last-chance'' host to try. If the NNTP server needs to authenticate the client, inews will use the NNTPsendpassword(3) routine to authenticate itself. In order to do this, the program will need read access to the passwd.nntp(5) file. This is typically done by having the file group-readable and making inews run setgid to that group. Inews exits with a zero status if the article was succesfully posted or mailed, or with a non-zero status if the article could not be delivered. Since inews will spool its input if the server is unavailable, it is usually necessary to run rnews(1) with the ``-U'' flag on a regular basis, usually out of cron(8). HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.27, dated 1996/10/29. SEE ALSO
moderators(5), inn.conf(5). rnews(1). INEWS(1)
All times are GMT -4. The time now is 10:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy