nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-07-2006, 08:07 PM
Junior Member
User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 25-07-2006, 11:12 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 10:36 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38