Sponsored Content
Top Forums Shell Programming and Scripting Issues for script that login to a unix box Post 302654955 by methyl on Tuesday 12th of June 2012 01:03:14 PM
Old 06-12-2012
@neutronscott
Quote:
ssh user@box1 <<'EOF'
You probably don't want the quotes round EOF, it disables parameter substitution in the Here Document .

Code:
cat <<'EOF'
1:$SHELL
EOF
cat <<EOF
2:$SHELL
EOF

./scriptname
1:$SHELL
2:/sbin/sh

 

9 More Discussions You Might Find Interesting

1. AIX

Vi opens automatically when i login to a unix box

When I login to a unix box using a putty session , I'm landed in a vi editor, instead of my home directory,I'm guessing instead of pointing me to my home directory, the system points me to /usr/bin/vi. As a result, everytime I log into the system I open up a vi editor and am in there. how do i... (3 Replies)
Discussion started by: ramky79
3 Replies

2. Shell Programming and Scripting

calling a unix script in one box from another box

i have a unix script which is available in a box say box1 i want this script to be run in box box2 and put the output file in box2 what is the procedure to execute this script in box2 i will call the script in box1 using cybermation (1 Reply)
Discussion started by: trichyselva
1 Replies

3. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

4. Shell Programming and Scripting

how to use ssh-keygen to login to a UNIX box

I have to login with ssh to a UNIX box and execute a script in it. How will i make use of ssh-keygen so that while login using ssh it wont ask the passwod. ssh-copy-id is not working in my UNIX box . What might be the reason. Please help. (1 Reply)
Discussion started by: codeman007
1 Replies

5. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

6. Linux

How to find remote Linux box login account without login in to that box?

Hi, How to find remote Linux box login account without login in to that box? I don't have login account at my remote Linux box. But I need who are all having login account. How do I findout? Thanks, --Muthu. (3 Replies)
Discussion started by: Muthuselvan
3 Replies

7. UNIX for Dummies Questions & Answers

DNS on Unix box issues

Hi Guys, Just wanted to seek your assistance on an issue encountered with one of our client DNS server query. we have 2 sets of DNS servers.. internal and external. For Internal to reach the external DNS server (DMZ) it has to go through 2 FWs. Current settings: - FW rules for Internal... (3 Replies)
Discussion started by: Hotshot8259
3 Replies

8. Linux

Linux script for multiple box login.

Hello! We currently use a SecureCRT .vbs script which automates logging into multiple boxes to run a few commands. However, I'd like to have something run in Linux vs. our emulator. Below is my objective :): Our current .vbs script will look at an IP list .txt file on our PC, then login to... (1 Reply)
Discussion started by: birdboyee
1 Replies

9. Programming

Remote login UNIX box from java passing parameters to the custom script called in the profile

Hello Good Day / Guten Tag.... I have to login the server and the user profile contains some scripts which need the inputs to be taken from the keyboard. So I use the method to conn.authenticateWithKeyboardInteractive(username, new InteractiveCallback() { public String... (1 Reply)
Discussion started by: Sanalkumaran
1 Replies
wml::std::box(3)						     EN Tools							  wml::std::box(3)

NAME
wml::std::box - Easily Create Rectangular Box SYNOPSIS
#use wml::std::box <box [attributes]> ... </box> DESCRIPTION
The "<box>" container tag puts its body into a nice rectangular box which itself is build via a HTML "<table>" construct. ATTRIBUTES
"header" This attribute switches between two totally different box variants. When it is present, a headlined box is created by the use of one single table but with space GIFs. When this attribute is missing a standard box is created by the use of two nested tables but without any space GIFs. "bgcolor" This sets the background color of the box. "fgcolor" This sets the foreground (text) color of the box. "bdcolor" This sets the color for the border of the box. The effect of this attribute is the automatic generation of a nested table construct to achieve the optical effect. "bdspace" This sets the space between the border and the body of the box in pixels. Default is 4 pixel. "bdwidth" This sets the border width in pixels. Default is 1 pixel. "width" This sets the total table width in pixels. Default is no specific width for the standard box and 300 pixels for the headlined box (because the headlined variant needs to know a fixed size to create the GIFs accordingly). "summary" Add a description of this table. This attribute is recommended in HTML 4.0. EXAMPLE
<box bdcolor="#000000" bdwidth=1 bdspace=10 bgcolor="#ffffff" fgcolor="#000000"> Foo Bar Quux </box> <box header="Foo Bar Quux Header" bdcolor="#000000" bdwidth=1 bdspace=10 bgcolor="#ffffff" fgcolor="#000000"> Foo Bar Quux </box> AUTHOR
Ralf S. Engelschall rse@engelschall.com www.engelschall.com REQUIRES
Internal: P1, P2 SEE ALSO
HTML "<table>" tag. EN Tools 2014-04-16 wml::std::box(3)
All times are GMT -4. The time now is 03:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy