Sponsored Content
Top Forums Shell Programming and Scripting Want to remove telnet error/info from screen Post 302844833 by Raza Ali on Tuesday 20th of August 2013 06:25:47 AM
Old 08-20-2013
Thnaks for reply Skrynesaver.

Issue still not resolved, As after firing this script it asks for username and password.
Which is not appearing on screen.
I checked d1d1 file it was asking for password.
So the problem is username password prompt also disappear from screen.

---------- Post updated at 03:55 PM ---------- Previous update was at 03:49 PM ----------

Although username did not appeared on screen, but I fired username first then password it worked. But not good from script point of view, as normal user will still require username password prompt.

Code:
bash-3.00$ ./raza_site_temp hst



Node: hstg1so                                  Date: 2013/08/20 10:20:24  GMT
Temperature:   25C

Node: hstg2so                                  Date: 2013/08/20 10:20:31  GMT
Temperature:   26C

Node: hstg3so                                  Date: 2013/08/20 10:20:37  GMT
Temperature:   24C

Node: hstg4so                                  Date: 2013/08/20 10:20:48  GMT
Temperature:   25C

Node: hstg5so                                  Date: 2013/08/20 10:20:55  GMT
Temperature:   25C

Node: hstg6so                                  Date: 2013/08/20 10:21:04  GMT
Temperature:   25C


GSX Temperature > 30C
*********************


bash-3.00$

It has to be like this.

Code:
bash-3.00$ ./raza_site_temp hst

Enter GSX Login: Enter GSX Password:

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Telnet and get info

Hello all, probably this is a very stupid question but I'm a beginner in the arts of scripting... :confused: I'm trying to do a script that logs in to several equipments, switchs etc, and make them show their version and save all the output to a file. I managed to do the login,... (6 Replies)
Discussion started by: pmpx
6 Replies

2. OS X (Apple)

Please look at this screen shot: How do I remove this lock icon?!

RESOLVED in the screen shot I'd like to remove the lock sandwiched between the spaces indicator and the monitor icon, how do I get rid of it? It locks the screen and I cannot remember how it came to be http://guptaxpn.com/tmp/lock_icon_screenshot.png Thanks for your help! (3 Replies)
Discussion started by: guptaxpn
3 Replies

3. Shell Programming and Scripting

Grabbing info from Telnet

I have a process that is running locally on the machine. When you telnet to the process: telnet IP port, it automatically returns a string which shows the status of that process. Something like this: # telnet IP Port Trying 127.0.0.1... Connected to localhost (127.0.0.1). Escape... (3 Replies)
Discussion started by: skaptakalian
3 Replies

4. UNIX for Dummies Questions & Answers

Automatic logging (capture screen output) of telnet/ssh sessions on a Solaris node

Hi I am working in Solaris 10 and I want to monitor logs for every telnet/ssh session that tries to connect to the server. I need these logs to be generated in a file that I can fetch using ftp. I am a new user and a stepwise detail will be great BR saGGee (3 Replies)
Discussion started by: saggee
3 Replies

5. Shell Programming and Scripting

Run a bash script, display on the screen and save all information in a file including error info

Hi all, How to: Run a bash script, display on the screen and save all information in a file including error information. For example: I have a bash script called test.sh now I want to run the test.sh and display the output on the screen and save the output including error info to a file. ... (1 Reply)
Discussion started by: Damon sine
1 Replies

6. Shell Programming and Scripting

Execution Problems with Remove Duplicate Info

Input file data_1 american 100 data_1 US 1000 data_1 australia 50 data_2 american 90 data_3 singapore 4 data_3 thailand 50 . . Desired output result data_1 american 100 US 1000 australia 50 data_2 american 90 data_3 singapore 4 thailand 50 (2 Replies)
Discussion started by: perl_beginner
2 Replies

7. AIX

xp to aix - telnet blank screen

hello, i am trying to test connection to a 5.3 box. from an xp machine, telnet connects but shows only a blank screen. cursor moves as i type, but no response back. have used telnet, putty and accuterm - all same result verified that telnet services are active in xp xp windoze firewall is... (10 Replies)
Discussion started by: allenhibbert
10 Replies

8. Shell Programming and Scripting

Telnet errors coming on screen while using snarf command.

Hi Team, I am using one script, It is working fine, the problem is it gives unwanted telnet errors when I am using it. I just want to remove these unwanted errors/info from my screen. bash-3.00$ cat raza_site_temp #!/usr/bin/bash #rj835b IFS="|" REGEX="$*" echo snarf2 -c "show... (1 Reply)
Discussion started by: Raza Ali
1 Replies

9. Post Here to Contact Site Administrators and Moderators

Remove confidential info

please remove following word from the respective links .There is a highy confidential info and hence we want it to be removed from site . https://www.unix.com/shell-programming-and-scripting/225177-max-size-directory.html words: itf ,ude,fititf ... (1 Reply)
Discussion started by: ptappeta
1 Replies
libapache2-mod-perl2-2.0.7::docs::api::APR::Date(3pm)	User Contributed Perl Documentation  libapache2-mod-perl2-2.0.7::docs::api::APR::Date(3pm)

NAME
APR::Date - Perl API for APR date manipulating functions Synopsis use APR::Date (); # parse HTTP-complient date string $date_string = 'Sun, 06 Nov 1994 08:49:37 GMT'; $date_parsed = APR::Date::parse_http($date_string); # parse RFC822-complient date string $date_string = 'Sun, 6 Nov 94 8:49:37 GMT'; $date_parsed = APR::Date::parse_rfc($date_string); Description "APR::Socket" provides the Perl interface to APR date manipulating functions. API
"APR::Date" provides the following functions and/or methods: "parse_http" Parse HTTP date strings $date_parsed = parse_http($date_string); arg1: $date_string ( string ) The date string can be in one of the following formats: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format refer to RFC2616 for the details (GMT is assumed, regardless of the used timezone). ret: $date_parsed ( number ) the number of microseconds since 1 Jan 1970 GMT, or 0 if out of range or if the date is invalid. since: 2.0.00 Remember to divide the return value by 1_000_000 if you need it in seconds. "parse_rfc" Parse a string resembling an RFC 822 date. It's meant to be lenient in its parsing of dates. Hence, this will parse a wider range of dates than "parse_http()". $date_parsed = parse_rfc($date_string); arg1: $date_string ( string ) The date string can be in one of the following formats: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format Sun, 6 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sun, 06 Nov 94 08:49:37 GMT ; RFC 822 Sun, 6 Nov 94 08:49:37 GMT ; RFC 822 Sun, 06 Nov 94 08:49 GMT ; Unknown [drtr@ast.cam.ac.uk] Sun, 6 Nov 94 08:49 GMT ; Unknown [drtr@ast.cam.ac.uk] Sun, 06 Nov 94 8:49:37 GMT ; Unknown [Elm 70.85] Sun, 6 Nov 94 8:49:37 GMT ; Unknown [Elm 70.85] ret: $date_parsed ( number ) the number of microseconds since 1 Jan 1970 GMT, or 0 if out of range or if the date is invalid. since: 2.0.00 Remember to divide the return value by 1_000_000 if you need it in seconds. See Also mod_perl 2.0 documentation. Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. Authors The mod_perl development team and numerous contributors. perl v5.14.2 2011-02-08 libapache2-mod-perl2-2.0.7::docs::api::APR::Date(3pm)
All times are GMT -4. The time now is 05:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy