Network access ksh

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2006
Posts: 2
Reputation: mfmalik is an unknown quantity at this point 
Solved Threads: 0
mfmalik mfmalik is offline Offline
Newbie Poster

Network access ksh

 
0
  #1
Jan 30th, 2006
Hi,
I want to access folder on a remote server in a LAN. I just need to access data from there. The script needed to run and create report on server it is resident only data needs to be accessed from other server.
Please anyone can help?
I have no clue about it. I know shell scripting but not much about network access using shell scripting
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 158
Reputation: nicentral is an unknown quantity at this point 
Solved Threads: 4
nicentral's Avatar
nicentral nicentral is offline Offline
Junior Poster

Re: Network access ksh

 
0
  #2
Jan 30th, 2006
The best way to do this is to find an app that will already do the reporting for you. Then you can send the results to a file instead of standard out. Or if you can, run the report on the server and save the results to a file on an NFS share.

Cheers
Nobody believes the official spokesman, but everybody trusts an unidentified source.

-- Please do not PM me with questions about a thread. If you respond to a thread, then everyone can benefit.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 2
Reputation: mfmalik is an unknown quantity at this point 
Solved Threads: 0
mfmalik mfmalik is offline Offline
Newbie Poster

Re: Network access ksh

 
0
  #3
Jan 31st, 2006
I have found a way to do this in shell script. May be it will help anyone sometime.

(sleep 1
echo "stdwh00";
sleep 1
echo "stdwh00";
sleep 3
echo ls
)| telnet <host>

the sleep duration is accroding to the time your connection takes to connect to telnet the server.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Shell Scripting Forum


Views: 2291 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Shell Scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC