10-12-2012
Error on the expect
The scrip keeps coming up with an error.
invalid command name "}"
while executing
"}"
(file "./pwd2.exp" line 16)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script??
something like ssh a@b -p password ??? (5 Replies)
Discussion started by: roshanjain2
5 Replies
2. UNIX for Dummies Questions & Answers
how do I remove telnet access to my AIX (5.3) machine? I just want people (admins) to connect to the box using ssh?
Thanks. (2 Replies)
Discussion started by: johnbrickell
2 Replies
3. Shell Programming and Scripting
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
4. Shell Programming and Scripting
Hello to all...this is my first post (so please go easy). :)
I feel pretty solid at expect scripting, but I'm running into an issue that I'm not able to wrap my head around. I wrote a script that is a little advanced for logging into a remote Linux machine and changing text in a file using sed.... (2 Replies)
Discussion started by: v1k0d3n
2 Replies
5. Ubuntu
I have a real need to telnet into my new Ubuntu 8.10 server and have Googled my eyes out with ideas that don't work. I CAN telnet out of the server, but I CANNOT telnet into it (connection refused error). I have updated my resolv.conf file but its expert time. ANY IDEAS??? THANKS!!! I knew I was... (13 Replies)
Discussion started by: gbxfan
13 Replies
6. Shell Programming and Scripting
I have created a shell script to telnet remote machine. Here is the problem I am not able to pass the login username and password to the telnet session. I have searched forum and got few other methods to achieve this. But I need to know what's wrong in the below script.
username="root"... (2 Replies)
Discussion started by: uxpassion
2 Replies
7. Shell Programming and Scripting
Hi,
I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit.
At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Discussion started by: newbie_01
1 Replies
8. Shell Programming and Scripting
Hi
First of all I tried lot of forums to create my first expect script. But I am totally stumped at the last step. I am no Linux Admin or ever trained in Linux. I just tried to create the script logically
History :
I need to to change my password across lot of servers in Linux over ssh
... (4 Replies)
Discussion started by: radioactive9
4 Replies
9. Shell Programming and Scripting
Hi
I am new to using unix and am struggling with a script i am writing. What i am trying to do is get a user to enter a username, check the original file i created with username and pin to see if their is a corresponding entry. Next ask the user to enter the pin and see if this matches... (5 Replies)
Discussion started by: somersetdan
5 Replies
10. Shell Programming and Scripting
Hi
I'm trying to run a script " abc.sh" which triggers "use.sh" .
abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script.
Please find below the scripts:
#abc.sh
#!/usr/bin/expect -f
exec /root/use.sh
expect "*name*"
send... (1 Reply)
Discussion started by: baddykam
1 Replies
SCALB(3) Linux Programmer's Manual SCALB(3)
NAME
scalb, scalbf, scalbl - multiply floating-point number by integral power of radix (OBSOLETE)
SYNOPSIS
#include <math.h>
double scalb(double x, double exp);
float scalbf(float x, double exp);
long double scalbl(long double x, double exp);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
scalb():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
scalbf(), scalbl():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600
DESCRIPTION
These functions multiply their first argument x by FLT_RADIX (probably 2) to the power of exp, that is:
x * FLT_RADIX ** exp
The definition of FLT_RADIX can be obtained by including <float.h>.
RETURN VALUE
On success, these functions return x * FLT_RADIX ** exp.
If x or exp is a NaN, a NaN is returned.
If x is positive infinity (negative infinity), and exp is not negative infinity, positive infinity (negative infinity) is returned.
If x is +0 (-0), and exp is not positive infinity, +0 (-0) is returned.
If x is zero, and exp is positive infinity, a domain error occurs, and a NaN is returned.
If x is an infinity, and exp is negative infinity, a domain error occurs, and a NaN is returned.
If the result overflows, a range error occurs, and the functions return HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively, with a sign the
same as x.
If the result underflows, a range error occurs, and the functions return zero, with a sign the same as x.
ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions.
The following errors can occur:
Domain error: x is 0, and exp is positive infinity, or x is positive infinity and exp is negative infinity and the other argument is not a
NaN
An invalid floating-point exception (FE_INVALID) is raised.
Range error, overflow
An overflow floating-point exception (FE_OVERFLOW) is raised.
Range error, underflow
An underflow floating-point exception (FE_UNDERFLOW) is raised.
These functions do not set errno.
CONFORMING TO
scalb() is specified in POSIX.1-2001, but marked obsolescent. POSIX.1-2008 removes the specification of scalb(), recommending the use of
scalbln(3), scalblnf(3), or scalblnl(3) instead. The scalb() function is from 4.3BSD.
scalbf() and scalbl() are unstandardized; scalbf() is nevertheless present on several other systems
SEE ALSO
ldexp(3), scalbln(3)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2010-09-20 SCALB(3)