need in development in script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers need in development in script
# 1  
Old 05-26-2007
need in development in script

i follow this procedure in hp-ux system

server0>

i remote login to server1 i get

server0> rlogin server1

server1 >

then switch user to super

server1 > su - super

the i run a command

super@server> <command> -a <input file> -d <output file>

well my question i want to run all these command in server0 using script

how can i do it?


thanks for any help
# 2  
Old 05-27-2007
you mean you want to do the rlogin and the command in one script???
# 3  
Old 05-27-2007
Whoa there. I'd strongly discourage the use of rlogin. You can do better (i.e. secure) things with ssh, and execute a sudo command on the target server to achieve what you want.

Cheers
ZB
# 4  
Old 05-28-2007
How about using remote shell (remsh) ?
# 5  
Old 05-28-2007
i tried the following command

server0> remsh server1 -l root "su - super "

but i get stty error any help to set it
# 6  
Old 05-29-2007
Through remsh, you can only run a command/script in the remote system. You cannot use remsh for interactive mode

You can try running the command like below

remsh -l super <command> -a <input file> -d <output file>
# 7  
Old 05-31-2007
Quote:
Originally Posted by praveenkumar_l
Through remsh, you can only run a command/script in the remote system. You cannot use remsh for interactive mode

You can try running the command like below

remsh -l super <command> -a <input file> -d <output file>
I tried this

remsh server1 -l root -a "fff" -d "dfdfdffd"
sh: -a: not found.

also
remsh server1 -l root -a fff -d dfdfdffd
sh: -a: not found.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Programming

About PHP Development

Hi All, We all designers are fearful into a firm spot in developing a time management and statistic/reporting web application/system. Because of our server I cannot work with SQL. I have to create this PHP application in Adobe Dreamweaver from scrape *eek* I am not very experienced person... (1 Reply)
Discussion started by: AimyThomas
1 Replies

2. What is on Your Mind?

Which OS is better for software development ?

Big noob in everything, so I want know from more experienced users and programmers what they think which OS is better for system development? (3 Replies)
Discussion started by: solaris_user
3 Replies

3. News, Links, Events and Announcements

b8 development goes on

b8 development goes on The next b8 release (0.5) will be a major one with major changes. Oliver Lillie sent me a basic PHP 5 port of b8, I used his code as the base for b8 0.5. Almost all parts have been completely rewritten, only the math remains untouched. The most significant changes are:... (0 Replies)
Discussion started by: Neo
0 Replies

4. UNIX for Dummies Questions & Answers

Development Environment Help

Hello all, First time here and with linux/*nix like OS's. What I'm trying to do is have a development environment in unix with GCC, GDB, and some editor like Vim/emacs/nano/etc.... I have Openbsd loaded on a virtual machine in VMware workstation. Boots fine and all seems good. I have... (2 Replies)
Discussion started by: tuck
2 Replies

5. UNIX for Dummies Questions & Answers

Moving to development

Hey someone tell me how to participate in the development of bsd unix....... (3 Replies)
Discussion started by: prasad1990
3 Replies

6. News, Links, Events and Announcements

The Development of the C Language

LINK The Development of the C Language http://cm.bell-labs.com/cm/cs/who/dmr/chist.html By: Dennis M. Ritchie Bell Labs/Lucent Technologies Murray Hill, NJ 07974 USA Paper History of C Language Development. B to C to BCPL (Ansi Standard). Check it out. This paper studies its evolution &... (0 Replies)
Discussion started by: killerserv
0 Replies
Login or Register to Ask a Question