03-23-2010
Please post the error output.
Your example should work. From your explaination it is not clear to me if you only have problem with variable substitution or something with your password/key since you do mention that too.
To use ssh without password prompt you'll have to create and exchange keys that have been generated without entering a password while doing so (as side note).
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
Its a simple issue i suppose.I am trying to write a script which first logson to other server via SSH & tries to stop a process ,then returns to its originator & completes a task & finally jumps to that second servers again & starts the (stopped) process.
What i am not able to implement... (2 Replies)
Discussion started by: ak835
2 Replies
2. Shell Programming and Scripting
Hi guys i have a script (takeconsole) as following
I have moved it to /usr/local/bin to make the execution of script simpler.
below are the content of the file.
When i run the file by typing "takeconsole" .it always ask for entering the IP address but when i run it by using ". takeconsole".... (9 Replies)
Discussion started by: pinga123
9 Replies
3. Shell Programming and Scripting
Hi all
I wrote a script to execute a script on several remote hosts, but somehow during the execution of the local script, ssh can't come back from the remote host, so that causes my local script hanging... I use the below command to do the job in the local script, any idea?
ssh... (12 Replies)
Discussion started by: bzylg
12 Replies
4. Cybersecurity
If a user execute commands remotely over ssh : $ ssh USERNAME@SERVER COMMANDSHow the SERVER administrator can log those COMMANDS executed in a "not a tty" session ?
I searched for my question and get the following suggestions:Anybody give help how to do this ? what the content of "/bin/bash "... (1 Reply)
Discussion started by: new0h
1 Replies
5. Shell Programming and Scripting
I m using multiple scripts which are running on one master computer(server) and fetching records from another computers(client).
For example.
Machine A running scripts to execute code on Client machines say Machine B ,Machine C and Machine D
respectively.
Output of the script is then... (2 Replies)
Discussion started by: pinga123
2 Replies
6. HP-UX
Greetings, i'm currently having issues in successfully executing a script from one server to other, and i'm cracking my nut in understanding why. Let's get started with the default info:
Server A:
briozzo@A:/home/briozzo $ uname -a
HP-UX A B.11.31 U ia64 2787251109 unlimited-user license
... (3 Replies)
Discussion started by: nbriozzo
3 Replies
7. Shell Programming and Scripting
If I execute below code I am able to get string from column8 and column10 about a process.
serverA1$> ps -ef | grep rotate | grep 'config' | awk '{print $8" "$10}'
/<Oracle_home>/ohs/bin/odl_rotatelogs -h:/<app_Home>/config/OHS/ohs1/component_events.xml_ohs1... (12 Replies)
Discussion started by: kchinnam
12 Replies
8. Programming
def gob(url):
print "\n\t Running gobuster on target."
params = " -e -s '307,200,204,301,302' -t 20 -u " + url + " >> /tmp/%s/gobuster.txt" % (ip)
os.system("xterm -e bash -c "tail -f /tmp/%/gobuster.txt"")
for i in bflist:
dirbf = "gobuster -w " + i... (3 Replies)
Discussion started by: alvinoo
3 Replies
9. UNIX for Beginners Questions & Answers
Hi ,
A shell script being executed by multiple user in a host, but i need the output of each user who executed the script
user should have screen output as well ...and unique log file name should generated on execution of script
is there anyway to get it
below file will overwrite... (5 Replies)
Discussion started by: amar1208
5 Replies
uuxqt(1M) System Administration Commands uuxqt(1M)
NAME
uuxqt - execute remote command requests
SYNOPSIS
/usr/lib/uucp/uuxqt [-s system] [-x debug-level]
DESCRIPTION
uuxqt is the program that executes remote job requests from remote systems generated by the use of the uux command. (mail uses uux for
remote mail requests). uuxqt searches the spool directories looking for execution requests. For each request, uuxqt checks to see if all
the required data files are available, accessible, and the requested commands are permitted for the requesting system. The Permissions file
is used to validate file accessibility and command execution permission.
There are two environment variables that are set before the uuxqt command is executed:
o UU_MACHINE is the machine that sent the job (the previous one).
o UU_USER is the user that sent the job.
These can be used in writing commands that remote systems can execute to provide information, auditing, or restrictions.
OPTIONS
The following options are supported:
-s system Specifies the remote system name.
-x debug-level debug-level is a number from 0 to 9.
Higher numbers give more detailed debugging information.
FILES
/etc/uucp/Limits
/etc/uucp/Permissions
/var/spool/locks/*
/var/spool/uucp/*
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbnuu |
+-----------------------------+-----------------------------+
SEE ALSO
mail(1), uucp(1C), uustat(1C), uux(1C), uucico(1M), attributes(5)
SunOS 5.10 19 May 1993 uuxqt(1M)