The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
background output smtpgeek UNIX for Advanced & Expert Users 3 08-08-2006 04:03 PM
background process zylwyz UNIX for Dummies Questions & Answers 5 07-12-2005 03:17 PM
background job babayeve UNIX for Dummies Questions & Answers 3 05-25-2005 10:08 AM
Background job rdbooth UNIX for Dummies Questions & Answers 1 03-23-2004 07:59 AM
background job joerg UNIX for Dummies Questions & Answers 3 09-05-2003 03:33 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2006
wisher115 wisher115 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 18
Question telnet and background ?

I have an issue i'm trying to resolve. It's a ksh script.
When i use this " & " after the telnet command i get output to my screen. I see what is going on, but i don't get anything sent to the dump2 file.
If i don't use it i get info sent to dump2 file and grep finds the data.
Is there a way it can work both ways. How would it look?

) | telnet > /usr/autoprog/prod/rob/dump2
sleep 3
grep -h c12k-fpd-pkg.120-32.S3.pkg < /usr/autoprog/prod/rob/dump2
rcode=$?
echo "$rcode"

Thanks.
  #2 (permalink)  
Old 09-27-2006
Andrek Andrek is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 122
Not shure, but try using "tee" ie
telnet | tee -a /usr/autoprog/prod/rob/dump2
"tee" will dump into a file and display on the screen.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0