10-28-2009
Easy my friend.
I will let you enjoy googling yourself for SSH with Keys and if you're still having problems ask us again
Cheers!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am a new guy in this forum, I am trying to do the following stuff
and want some inputs
I am doing this manually, by using the scp command to copy file from
a remote unix machine and entering the password at the password prompt.
Like this,
scp -p user@machine.com:/tmp/test.sh .... (1 Reply)
Discussion started by: drivewedge
1 Replies
2. Shell Programming and Scripting
Hi
Most of the shell scripts I am dealing with have to connect to oracle database . The username password is stored in a environment file which sets the variables for username and password . Set user id do not work on AIX so users who will execute these scripts need to have read or execute... (5 Replies)
Discussion started by: clifford
5 Replies
3. Shell Programming and Scripting
Hello everybody! First time posting here:)
Right, I am trying to pass arguments in my shell scripts using $1, $2 and $3 etc using if else statement........
This is my shell script which is based on serching the google website
#!/bin/sh
wget -t1 -E -e robots=off - -awGet.log -T 200 -H... (47 Replies)
Discussion started by: kev_1234
47 Replies
4. Shell Programming and Scripting
I have a requirement, I need to run a command at remote system using a ssh. Is there any way we can pass the username and password in shell script to the ssh command as we did it in one of the shell script for FTP.
ftp -n $i <<!EOF >>
user Username $PASSWD
cd /home/scripts
... (5 Replies)
Discussion started by: Muktesh
5 Replies
5. Shell Programming and Scripting
ssh/sftp login by passing password , is it possible.Don't want to expect. (1 Reply)
Discussion started by: dinjo_jo
1 Replies
6. UNIX for Dummies Questions & Answers
hi All,
i m trying to pass a user choice paramter from unix to sqlplus connect command
here i want the user to enter the username and password he wants to connect in sql plus through read in unix and then automatically connect to that instance.
sqlplus -s $1/$2
where $ 1 and $2 will b... (2 Replies)
Discussion started by: Jcpratap
2 Replies
7. UNIX for Advanced & Expert Users
I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies
8. Shell Programming and Scripting
So this is something I've been wondering how to do for a while. Suppose I have two shell scripts a.sh and b.sh
script a does some function and outputs to a varable $x . I would then like to take $x into the second function, b.sh, and do a function on it and create some output. So how do you pass... (3 Replies)
Discussion started by: viored
3 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to create a script with the help of while and expect loop to do the following:
1. script will pick up the servers one by one from server_list file and will do ssh to it.
2. for each server it will change the password of user test1.
3. script should also provide logs for... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies
10. Shell Programming and Scripting
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies
LEARN ABOUT DEBIAN
graph::easy::layout::chain
Graph::Easy::Layout::Chain(3pm) User Contributed Perl Documentation Graph::Easy::Layout::Chain(3pm)
NAME
Graph::Easy::Layout::Chain - Chain of nodes for layouter
SYNOPSIS
# used internally, do not use directly
use Graph::Easy;
use Graph::Easy::Layout::Chain;
my $graph = Graph::Easy->new( );
my ($node, $node2) = $graph->add_edge( 'A', 'B' );
my $chain = Graph::Easy::Layout::Chain->new(
start => $node,
graph => $graph, );
$chain->add_node( $node2 );
DESCRIPTION
A "Graph::Easy::Layout::Chain" object represents a chain of nodes for the layouter.
METHODS
new()
my $chain = Graph::Easy::Layout::Chain->new( start => $node );
Create a new chain and set its starting node to $node.
length()
my $len = $chain->length();
Return the length of the chain, in nodes.
my $len = $chain->length( $node );
Given an optional $node as argument, returns the length from that node onwards. For the chain with the three nodes A, B and C would return
3, 2, and 1 for A, B and C, respectively.
Returns 0 if the passed node is not part of this chain.
nodes()
my @nodes = $chain->nodes();
Return all the node objects in the chain as list, in order.
add_node()
$chain->add_node( $node );
Add $node to the end of the chain.
start()
my $node = $chain->start();
Return first node in the chain.
end()
my $node = $chain->end();
Return last node in the chain.
layout()
my $todo = $chain->layout();
Return an action stack as array ref, containing the nec. actions to layout the chain (nodes, plus interlinks in the chain).
Will recursively traverse all chains linked to this chain.
merge()
my $chain->merge ( $other_chain );
my $chain->merge ( $other_chain, $where );
Merge the other chain into ourselves, adding its nodes at our end. The other chain is emptied and must be deleted by the caller.
If $where is defined and a member of $other_chain, absorb only the nodes from $where onwards, instead of all of them.
error()
$last_error = $node->error();
$node->error($error); # set new messags
$node->error(''); # clear error
Returns the last error message, or '' for no error.
dump()
$chain->dump();
Dump the chain to STDERR, to aid debugging.
EXPORT
None by default.
SEE ALSO
Graph::Easy, Graph::Easy::Layout.
AUTHOR
Copyright (C) 2004 - 2006 by Tels <http://bloodgate.com>.
See the LICENSE file for more details.
perl v5.14.2 2011-12-23 Graph::Easy::Layout::Chain(3pm)