nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Script for accessing data ..

This is a discussion on Script for accessing data .. within the Shell scripting forums, part of the Development/Scripting category; Well i m kinda newbie at this shell scripting stuff .. so spare me if u find me total stupid ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-25-2006, 09:07 PM
Junior Member
 
Join Date: Jul 2006
Posts: 1
Rep Power: 0
Dastard
Default Script for accessing data ..

Well i m kinda newbie at this shell scripting stuff .. so spare me if u find me total stupid
As a matter of fact i need a script to access a remote unix server via telnet , for time being assume any ip address , username and password , then on that server script should check the path ( assume correct path is "/home/var/tmp" and if default path is not this .. then go to this path ... then on this very path ... run few commands in given order .. let those be
1) su - ss7
2) cd Isup
3) show tsp

For time being i stop here .. assume it done till now .. caz i don think i ll able to digest whole in one step .. i ll proceed with remaining steps after getting through with these many tasks
i hope i ll be making sense or whateva hit me back if u think i ll ned to explain more
Regards
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2006, 12:12 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Telnet is insecure protocol you should use ssh. Examples for ssh are at already covered, please see following ulrs

Ssh login expect script to supply password: http://bash.cyberciti.biz/security/sshlogin.exp.php

How to use ssh in Unix or Linux shell script? http://www.cyberciti.biz/faqs/2006/0...inux-shell.php

Execute Commands on Multiple Linux or UNIX Servers
http://www.cyberciti.biz/nixcraft/vi...e-linux-or.php

If you need any further help just reply back and we will be glad to assist you
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Ubuntu: Issue accessing any System applications hightech Linux software 4 01-29-2007 10:56 AM
A problem accessing forums but not sure where to post Beresford The Hangout 2 07-21-2006 06:19 AM
print data to txt rock Shell scripting 1 03-10-2006 03:01 AM
Script to extract a specific row of data ricc Shell scripting 1 11-15-2005 03:29 PM
script to rewrite data. kavi Shell scripting 3 09-18-2005 01:13 AM


All times are GMT +5.5. The time now is 07:20 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36