Script for accessing data..


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script for accessing data..
# 1  
Old 07-25-2006
CPU & Memory 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
# 2  
Old 07-26-2006
Have a look at this:
https://www.unix.com/showthread.php?t...net+automation
Try to search in the forums, there are probably more threads on this.
Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Accessing secured server using shell script

Hi, I was trying to connect secure server using SFTP, but end up in error. Im looking for a shell script which will connect my secured FTP server For EG: hostname = example.com username = fed password = pass port = 993 Destination = web Push some tar file into web folder which is in... (3 Replies)
Discussion started by: Paulwintech
3 Replies

2. Shell Programming and Scripting

Issue faced while accessing data from files on different servers.

I have two log files of same name and structure which resides on different servers with ssh-keygen installed. I want to search for a list of strings available in an array on last 15 minutes logs of both files and calculate the total count of occurence of each string. Sample format of both file... (0 Replies)
Discussion started by: poweroflinux
0 Replies

3. Shell Programming and Scripting

accessing a variable or array of one script in another

hi all, i've a requirement like this. i want to access the contents of an array declared in one script,which is a bash script, to a second script which is a perl script. actually i want a sort of global variable which can be accessed in other script like environmen variables and also i can... (3 Replies)
Discussion started by: tprayush
3 Replies

4. Shell Programming and Scripting

Accessing a variable from another script

Hi, Can anyone assist me on how to access a variable in a shell script from another script. for ex, Script-1 ------- #! /bin/sh c=10 Where as, i would like to access the velue of variable c in another script 'Script-2'. Thankyou to all in advance !! :b: :b: (2 Replies)
Discussion started by: little_wonder
2 Replies

5. Shell Programming and Scripting

Accessing php script from shell script

Hi I'm a newb to php scripts. My task requires me to run a shell script from within the php script which I believe I've figured out. What I'm trying to do now is output something to the web page from the called shell script. when I use "echo" from the called shell script I don't get any output... (3 Replies)
Discussion started by: airon23bball
3 Replies

6. Shell Programming and Scripting

Accessing aliases within a shell script

I am not able to access the aliases in my environment within a Python script. If I pass the alias to os.system(), I get a message saying "sh: x: not found". I've tried sourcing my .bashrc file in the script, but this does not work. I would perfer not to source my or any rc file because this... (9 Replies)
Discussion started by: cooldude
9 Replies

7. Shell Programming and Scripting

Accessing the parameters of a shell script

Hi, I have one situation. I am developing a shell script to which parameters will be passed from a Web based User Interface using some Business Process(BP).There are some 6 parameters for which user will enter the values in UI. These values will be passed to script by BP in the form -... (2 Replies)
Discussion started by: The Observer
2 Replies

8. UNIX for Dummies Questions & Answers

accessing shell script variable in file

Hi, I have a shell script in which there is a file conn_$temp where $temp has the pid of the shell script. in this shell script i have an embedded awk script that must read the file while ((getline < "conn_$temp") > 0) However due to the "$temp" in the file name, the awk script is... (6 Replies)
Discussion started by: HIMANI
6 Replies

9. UNIX for Dummies Questions & Answers

Accessing UNIX Data over LINUX

Hello! Unfortunatly i'm totaly new with UNIX and LINUX... Actually Problem is i have some data on floppy disk which was written on UNIX system 5 version now i have installed LINIX ver 9 is there any way i can access unix data on linux 9? if so please reply me with commands i shall be very... (2 Replies)
Discussion started by: xohaib
2 Replies

10. UNIX for Dummies Questions & Answers

Accessing a URL through script

Hi, I am faced with a problem. Is it possible to access a URL from Unix script and to check whether it is up and running? I could find some perl scripts that can do the same , but could not get any info if we can achieve it with UNix. Any help will be very useful. Thanks in advance. (1 Reply)
Discussion started by: hamsasal
1 Replies
Login or Register to Ask a Question