06-14-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am having nightmare issue-ing remote ssh command from a CGI perl script.
It just won't run on debug message: It says permission denied. Can I even do this? as the apache server running under DAEMON account probably can't execute it? Is this the case of what's going on?
Here is my... (3 Replies)
Discussion started by: Dabheeruz
3 Replies
2. Shell Programming and Scripting
i want a script with expect or perl or shell which will do ssh to remote host...it will take commandline argument and run the script in remote host.......
i.e that will be like ./ssh.exp remoteip username passwd /tmp.kk.sh
can someone help me on this? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
3. Solaris
server is ok, I can login on console. however, when I use SSH teachia, there is no repsond.
i have check ps-ef | grep ssh, it shows ok. restart ssh too. still not working.
Anything else I need to check?
# ps -ef | grep ssh
root 24706 1 0 Jun 12 ? 0:00... (7 Replies)
Discussion started by: uuontario
7 Replies
4. UNIX for Advanced & Expert Users
I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1.
When I do a who -m from A2, I see the "connected from" as "A1".
=> who -m
userid pts/2 2010-03-27 08:47 (A1)
I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies
5. Shell Programming and Scripting
Hi all,
I am facing the following issue:
Host A should execute a remote command (say pwd) on host B2.
B2 is not directly reacheable but you have to connect from a to B1, then from B1 you can execute the command ssh user@B2 pwd.
B1 and B2 are directly connected:
A => B1 => B2
| ... (3 Replies)
Discussion started by: Evan
3 Replies
6. Shell Programming and Scripting
Hello,
I am running into few issues, please suggest me what I am missing.
I am running this script on a linux host.
Main idea of this script is to, login to each host via ssh and get uid of user, service user that I trying to run this script, has already deployed ssh keys and provide sudo... (8 Replies)
Discussion started by: bobby320
8 Replies
7. Shell Programming and Scripting
I am automating the SFTP keys setp process:
So i created the expect script for controlling the output of shell
below is my main code:
#!/usr/bin/expect
set fd
set password
close $fd
set df
set app
close $df
spawn ssh servername << pb
Pb file:
set df
set app
close $df (4 Replies)
Discussion started by: Manoj Bajpai
4 Replies
8. Shell Programming and Scripting
Hi,
i want to write script where it will login into 50 hosts and if login is successful it print message "login to host1 is
successful" if not it should print message "Not able to login to host1". once connection to the host is succesful it should fire df command to check filesystem if df is... (3 Replies)
Discussion started by: amru8810
3 Replies
9. Shell Programming and Scripting
How should i make the following code working
#!/bin/bash
INPUTFILE="test.txt"
while read STRING; do
IP=`host -t A $STRING | awk '{print $NF}'`
HOSTNAME=`ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no $IP "hostname"`
echo $HOSTNAME > out.txt
done < $INPUTFILE
At this moment while... (3 Replies)
Discussion started by: urello
3 Replies
10. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
LEARN ABOUT PHP
udm_add_search_limit
UDM_ADD_SEARCH_LIMIT(3) 1 UDM_ADD_SEARCH_LIMIT(3)
udm_add_search_limit - Add various search limits
SYNOPSIS
bool udm_add_search_limit (resource $agent, int $var, string $val)
DESCRIPTION
udm_add_search_limit(3) adds search restrictions.
PARAMETERS
o $agent
- A link to Agent, received after call to udm_alloc_agent(3).
o $var
- Defines the parameter, indicating limits. Possible $var values:
o UDM_LIMIT_URL - defines document URL limitations to limit the search through subsection of the database. It supports SQL %
and _ LIKE wildcards, where % matches any number of characters, even zero characters, and _ matches exactly one character.
E.g. http://www.example.___/catalog may stand for http://www.example.com/catalog and http://www.example.net/catalog.
o UDM_LIMIT_TAG - defines site TAG limitations. In indexer-conf you can assign specific TAGs to various sites and parts of a
site. Tags in mnoGoSearch 3.1.x are lines, that may contain metasymbols % and _. Metasymbols allow searching among groups
of tags. E.g. there are links with tags ABCD and ABCE, and search restriction is by ABC_ - the search will be made among
both of the tags.
o UDM_LIMIT_LANG - defines document language limitations.
o UDM_LIMIT_CAT - defines document category limitations. Categories are similar to tag feature, but nested. So you can have
one category inside another and so on. You have to use two characters for each level. Use a hex number going from 0-F or a
36 base number going from 0-Z. Therefore a top-level category like 'Auto' would be 01. If it has a subcategory like 'Ford',
then it would be 01 (the parent category) and then 'Ford' which we will give 01. Put those together and you get 0101. If
'Auto' had another subcategory named 'VW', then it's id would be 01 because it belongs to the 'Ford' category and then 02
because it's the next category. So it's id would be 0102. If VW had a sub category called 'Engine' then it's id would start
at 01 again and it would get the 'VW' id 02 and 'Auto' id of 01, making it 010201. If you want to search for sites under
that category then you pass it cat=010201 in the URL.
o UDM_LIMIT_DATE - defines limitation by date the document was modified. Format of parameter value: a string with first
character < or >, then with no space - date in unixtime format, for example:
Example #1
<?php
udm_add_search_limit($udm, UDM_LIMIT_DATE, "<908012006");
?>
If > character is used, then the search will be restricted to those documents having a modification date greater than
entered, if <, then smaller.
o $val
- Defines the value of the current parameter.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group UDM_ADD_SEARCH_LIMIT(3)