Hi. I have a kornshell script that runs on a daily basis as a cron job. Part of what the script does is copy the folder contents from another server to the current server (server where KSH script is running).
I have a scp command, as follows:
scp $REMOTE_HOST:$REMOTE_FILE_DIR/* $TMP_DIR
... (8 Replies)
Greetings all,
I'm in the midst of writing a login component for a series of shell scripts. What my login script does is this:
1. Prompt for username and read in username
2. Prompt for destination host and read in destination host
3. run ssh username and destination host
4. After user keys... (0 Replies)
Hi all,
Just like to ask if it is possible to do the following:
1. Have a shell script that calls ssh username@destinationhost
2. Upon successful verification, we ssh into the destination host and automatically use ksh to run a shell script that resides in the destination host. (Hopefully no... (8 Replies)
Hello,
Im a beginner. Im writing a ksh script with awk. Is it possible to assign the output of the awk to a shell variable?
Like,
shell_variable= awk '$1 == "shell" {abc= $2 }' /tmp/cust_det
echo $shell_variable
Please excuse my ignorance. Thanks in advance. (4 Replies)
HI Unix Gurus,
I an stuck in an interesting issue, where I am trying to execute a script on remote server after ssh.
The script on remote server is interactive,. Whenever it is called it hangs where it expects input from terminal and I have to terminate it.
I have searched through fourm... (12 Replies)
Hi guru,
I'm making crazy cause an issue on a ksh shell I made.
In this shell I want to execute unix command on a remote machine using an ssh connection like ssh user@host 'command'.....
The command is very simply, is an ls on a remote directory but it give me an unexpected result.
The... (4 Replies)
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Hi,
I am trying to figure out a ksh script that i have and i think i found it but not sure.
i am having to scp or sftp files from my remote server over 2 others to the destination.
i have the rsa keys setup for the servers on my end and the username and password for the final server.
... (3 Replies)
I need a script in ksh that
-automatically connect to computers in a network and identify directories in remote computers
-then mount directories on to the local host where the script is runned
-then backup directories in the local host and the remote systems one by one using tar command (to... (9 Replies)
I have googled this and found many solutions, but none of them are working for me. I am in a korn shell, most others reference bsh, maybe that is the issue? Anyway, all I am trying to do is use a variable I have declared in my main script in a remote shell I am running through ssh.
So I have a... (8 Replies)
Discussion started by: DJR
8 Replies
LEARN ABOUT HPUX
dce_login
dce_login(1m)dce_login(1m)NAME
dce_login - Validates a principal's identity and obtains the principal's network credentials
SYNOPSIS
dce_login [principal_name] [password] [-c | -k keytable] [-r] [-f | +f]
[-e[xec] cmd_string]
OPTIONS
Causes the principal's identity to be certified. If you do not specify -c, the principal's identity is validated only. Retrieves the
authentication key from keytable. Refreshes and validates the current login ID. Enables DCE TGT to be forwardable. Disables DCE TGT to
be forwardable. Executes the command supplied as cmd_string.
ARGUMENTS
The name of the principal to log in as. The password for principal_name.
DESCRIPTION
The dce_login command is supplied for use in DCE configuration. It validates a principal's identity and obtains the principal's network
credentials.
If the -c option is supplied, the command also certifies the principal's identity, and, if the principal is able to be certified, creates
an entry for the principal in the machine's local registry. If the principal is not able to be certified, the command attempts to log the
principal in via the local registry.
The -exec option executes the command specified by cmd_string after login. If cmd_string is specified without a full pathname, the path
prefix is obtained by searching the directories according to the PATH variable.
If you do not supply the name of the principal to validate, either on the command line with the principal_name argument or through the -r
option that retrieves the principal name from the current login context, dce_login prompts for the principal name. If you do not supply
the principal's authentication key either on the command line with password argument or through the -k option that retrieves the principal
authentication key from the specified keytable, dce_login prompts for the password.
If you supply the principal name and password on the command line, you must specify the principal name first, followed by the password. If
you supply the principal_name argument and the -r option, the named principla must be the principal of the current network identity.
If you supply the -f option, the forwardable TGT attribute is then turned on for this login context. Then when forwarding a user's DCE TGT
from machine A to machine B, it enables the user from machine A to reuse their Kerberos credentials on machine B. The option +f turns off
the forwardable TGT attribute. -f and +f can be used in conjunction with -r to change the forwardable TGT attribute for the current login
context.
The dce_login command executes the shell specified in the SHELL environment variable.
Note that if the clocks on the Security server and client machines are not synchronized to within 2 or 3 minutes of each other, you may
receive a password validation error and be unable to be validated.
dce_login(1m)