10-31-2007
PORTER:
Thanks so much. I understand basics. I do want to learn this. Could you please give command step by step. So I can catch up. Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there--I think this is more of a Windows question, but I think many of you might be able to help me out:
I have a UNIX web server and a Windows machine. I'm trying to script the following tasks so that they can be run from the Windows machine (via a
batch file):
1. Shutdown web services... (5 Replies)
Discussion started by: sohungry73
5 Replies
2. HP-UX
want to remove the thread
thanks (2 Replies)
Discussion started by: indira
2 Replies
3. Shell Programming and Scripting
want to remove this thread.
thanks (2 Replies)
Discussion started by: indira
2 Replies
4. Shell Programming and Scripting
If I run this
# ssh remote-server 'du -sk /usr/platform/`uname -i`/'
174 /usr/platform/SUNW,Sun-Fire-V245
I get my output just fine,
However, if i try to do the same but populate a local variable within my script called for example 'result'
#!/bin/ksh
result=`ssh remote-server... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
5. Shell Programming and Scripting
The following code doesn't work properly which means it doesn't displays remote output.
#!/bin/ksh
#################### Function macAddressFinder ########################
macAddressFinder()
{
`ifconfig -a > ipInterfaces`
`cat ipInterfaces`
}... (2 Replies)
Discussion started by: presul
2 Replies
6. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
7. UNIX for Dummies Questions & Answers
How do i copy files from Unix Server to my Local Desktop..
ANy ideas..please suggest....V Urgent. (1 Reply)
Discussion started by: win4luv
1 Replies
8. Shell Programming and Scripting
When i use ssh command to execute local script on remote server , I am unable to do it.
Please let me know how this can be done in ksh
req=abc
dte=ghd
ssh username@hostname "$req $dte" < run_script.sh (2 Replies)
Discussion started by: lalitpct
2 Replies
9. Red Hat
Can somebody know if it is possible to connect to remote IBM MQ, if local server using C, but don't have MQ library?
Thanks for contribution (0 Replies)
Discussion started by: digioleg54
0 Replies
10. UNIX for Beginners Questions & Answers
Dear Experts,
I have found this script on internet that can be used to execute local script remotely
#!/bin/bash
# runremote.sh
# usage: runremote.sh localscript remoteuser remotehost arg1 arg2 ...
realscript=$1
user=$2
host=$3
shift 3
# escape the arguments
declare -a args
... (4 Replies)
Discussion started by: mukulverma2408
4 Replies
LEARN ABOUT OSF1
showmount
showmount(8) System Manager's Manual showmount(8)
NAME
showmount - Shows remote NFS compatible mounts on a host
SYNOPSIS
showmount [-adeT] [-t nnn] [host]
FLAGS
Lists all mount points in the form: hostname:dirpath. In this form, hostname is the name of a client that has remotely mounted a directory
from an NFS server, and dirpath is the directory that has been mounted. Lists only directories that have been remotely mounted by clients.
Shows host's exports list. Specifies an infinite timeout. The default timeout value is 25 seconds. Specifies a timeout value, in sec-
onds. The default timeout value is 25 seconds.
The default value for host is the current hostname.
DESCRIPTION
The showmount command shows status information about the NFS server on host. By default, it prints the names of all hosts that have NFS
file systems mounted from the server host. See NFS: Network File System Protocol Specification, RFC1094, Appendix A for a detailed
description of the protocol.
NOTES
The mountd daemon running on the server only has an idea of the actual mounts, since the NFS server is stateless. showmount will only dis-
play the information as accurately as the mount daemon reports it.
The default timeout value of 25 seconds can be too brief to read and verify an export list. If you receive timeout messages when using the
showmount -e command, use either the -T or the -t options to increase the timeout value.
FILES
Specifies the command path Contains a table of local file systems mounted by remote NFS clients
RELATED INFORMATION
Commands: mount(8)
Daemons: mountd(8)
Files: mountdtab(4) delim off
showmount(8)