Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Viewing files of another unix server (in a folder) Post 302080745 by jim mcnamara on Thursday 20th of July 2006 10:09:43 AM
Old 07-20-2006
nfsd is something the guy who owns and runs Comp2 has to do, not you.
The whole NFS thing is a sysadmin job. Without NFS you will not be able to see the remote folder in the "file manager" window.

Actually based on your description, I'd say that without somebody local and knowledgeable who can help, you're going to have to learn a lot before you can implement anything really useful.

remsh is like rlogin, but it accepts just one command. It's possible you have rexec.
Sounds like you have Linux, so try info rexec.

The which command will show you what is on your system - for example suppose you want to see if remsh is available:
Code:
which remsh

If it comes back with a filename maybe like "/usr/bin/remsh" you know it's on your box.
Otherwise it will complain.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can i move data files from a server to unix folder

Hi: I am very new in UNIX environment. I need big help. How I can move data files from a server to UNIX folder by script. I don't want to use ws-ftp. The script should check the file on server, if any file found, move it to UNIX folder. I will be very happy, if some one helps me out.... (1 Reply)
Discussion started by: shah2
1 Replies

2. Programming

unix C++: get the files from a folder

Hello everybody! How can I get the list of files from a folder in C++ (unix)? thanks in advance for any help! regards (2 Replies)
Discussion started by: nadiamihu
2 Replies

3. UNIX and Linux Applications

Copy folder and its contents from HP Unix server to RH Linux

I am trying to copy a folder and all its contents from HP Unix box to RH linux, using the following. rsync -avz -e "ssh" /users/www/webroot/docFiles/Division/Ctry ftpuser@10.4.xxx.yz:/data/webroot/development/contentfiles/webroot/docFiles/Division/Ctry/QAfiles And it throws a consistent... (2 Replies)
Discussion started by: FanTom
2 Replies

4. Shell Programming and Scripting

how to FTP a file from the local folder to unix server

Hi All, please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server. Where as i know the IP for the Unix server. i could do this process by using ftp command. pls help me to write as Shell script. Thanks in advance for all of your answers.:b::b: (3 Replies)
Discussion started by: little_wonder
3 Replies

5. Shell Programming and Scripting

script for to take files from FTP server to UNIX server and Unzipped that files

script for to take files from FTP server to UNIX server and Unzipped that files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

6. UNIX and Linux Applications

Need to copy the latest file from Unix server to Shared folder

Hi All, One job in unix server will generate .csv files daily. I need to copy the latest of these .csv file from the unix server to the shared drive/folder in windows through unix script. My shared folder will look something like W:\some folder(for example). Could any one of you please help... (3 Replies)
Discussion started by: jaya@123
3 Replies

7. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

8. Shell Programming and Scripting

Copy folder and files from unix server to linux server

We would be migrating unix solaries to Linux redhat. Basically source is unix and target is linux. i would like to copy entire file system unix/source/* to target linux/souce/* but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies

9. Shell Programming and Scripting

BatchScript/Unix shell Script to check folder in Windows server

Hi, It will be great help if any of them can provide or tell which scripting is possible to write for checking folder exists or not in Windows server from Unix/Windows machine. If folder doesn't exist then need to create the folder through script and copy the files. It is on very... (1 Reply)
Discussion started by: prakashchakra7
1 Replies

10. Windows & DOS: Issues & Discussions

Transfer of zipped folder from windows desktop to UNIX server

Hi all, I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use... (3 Replies)
Discussion started by: sherin22
3 Replies
rexec(1)						      General Commands Manual							  rexec(1)

NAME
remsh, rexec - execute from a remote shell SYNOPSIS
host username] command host username] command host username] command In Kerberos V5 Network Authentication Environments: host username] realm] command host username] realm] command DESCRIPTION
connects to a specified host and executes a specified command. The host name can be either the official name or an alias as understood by (see gethostent(3N) and hosts(4)). copies its standard input to the remote command, the standard output of the remote command to its stan- dard output and the standard error of the remote command to its standard error Hangup, interrupt, quit, terminate, and broken pipe signals are propagated to the remote command. exits when the sockets associated with and of the remote command are closed. This means that nor- mally terminates when the remote command does (see remshd(1M)). By default, uses the following path when executing the specified command: uses the default remote login shell with the option to execute the remote command. If the default remote shell is csh, csh sources the remote file before the command. cannot be used to run commands that require a terminal interface (such as or commands that read their standard error (such as In such cases, use or instead (see rlogin(1) and telnet(1)). The remote account name used is the same as your local account name, unless you specify a different remote name with the option. This remote account name must be equivalent to the originating account. In addition, the remote host account name must also conform to other rules, which differ depending upon whether the remote host is operating in a Kerberos V5 Network Authentication, i.e., secure environment, or not. In a non-secure, or traditional environment, the remote account name must be equivalent to the originating account; no provision is made for specifying a password with a command. For more details about hosts and how to specify them, see hosts.equiv(4). The files inspected by on the remote host are and (see remshd(1M)). In a Kerberos V5 Network Authentication environment, the local host must be successfully authenticated before the remote account name is checked for proper authorization. The authorization mechanism is dependent on the command line options used to invoke on the remote host (i.e., For more information on Kerberos authentication and authorization see the Secure Internet Services man page, sis(5) and remshd(1M). Although Kerberos authentication and authorization may apply, the Kerberos mechanism is applied to the command or to its response. All the information that is transferred between the local and remote host is still sent in cleartext over the network. In a secure or Kerberos V5-based environment, the following command line options are available: Forward the ticket granting ticket (TGT) to the remote system. The TGT is not forwardable from that remote system. Forward the TGT to the remote system and have it forwardable from there to another remote system. The option and option are mutually exclusive. Obtain tickets from the remote host in the specified realm instead of the remote host's default realm as specified in the configuration file Disable Kerberos authentication. The Kerberos authentication and authorization mechanism and the above Kerberos specific options are not supported in IPv6 enabled systems. If command, is not specified, instead of executing a single command, you will be logged in on the remote host using (see rlogin(1)). Any options typed in on the command line are transmitted to If no command and the option are specified, will be invoked with to indicate that Kerberos authentication (or secure access) is not necessary. This means that if a password is requested, the password will be sent in cleartext. If command is specified, options specific to are ignored by By default, reads its standard input and sends it to the remote command because has no way to determine whether the remote command requires input. The option redirects standard input to from This is useful when running a shell script containing a command, since otherwise remsh may use input not intended for it. The option is also useful when running in the background from a job control shell, or Otherwise, stops and waits for input from the terminal keyboard for the remote command. automatically redirects its input from when jobs are run in the background. Host names for remote hosts can also be commands (linked to in the directory If this directory is specified in the environment variable, you can omit For example, if is the name of a remote host, is linked to and if is in your search path, the command executes command on and the command is equivalent to The command works in the same way as except that it uses the library routine and for command execution (see rexec(3N) and rexecd(1M)) and does not support Kerberos authentication. prompts for a password before executing the command instead of using for authentication. It should be used in instances where a password to a remote account is known but there are insufficient permissions for EXAMPLES
Shell metacharacters that are not quoted are interpreted on the local host; quoted metacharacters are interpreted on the remote host. Thus the command line: appends the remote file to the local file while the command line appends to the remote file If the remote shell is the following command line sets up the environment for the remote command before executing the remote command: The throws away error messages generated by executing when stdin and stdout are not a terminal. The following command line runs in the background on the local system, and the output of the remote command comes to your terminal asyn- chronously: The background completes when the remote command does. The following command line causes to return immediately without waiting for the remote command to complete: (See remshd(1M) and sh(1)). If your login shell on the remote system is csh, use the following form instead: RETURN VALUE
If fails to set up the secondary socket connection, it returns 2. If it fails in some other way, it returns 1. If it fully succeeds in setting up a connection with it returns 0 once the remote command has completed. Note that the return value of bears no relation to the return value of the remote command. DIAGNOSTICS
Besides the errors listed below, errors can also be generated by the library functions and In the case of IPv6 systems, the library func- tions and are replaced by and respectively, and can generate errors (see rcmd(3N) and rcmd_af(3N)). These errors are preceded by the name of the library function that generated them. can produce the following diagnostic messages: There are two authentication mechanisms used by One authentication mechanism is based on Kerberos and the other is not. The type of authentication mechanism is obtained from a system file which is updated by (see inetsvcs_sec(1M)). If the system file does not contain known authentication types, the above error is displayed. Error in executing is executed when the user does not specify any commands to be executed). This is followed by the error message specifying why the execution failed. The ``shell'' service specification is not present in the file. cannot establish secondary socket connection for Error in executing system call. Appended to this error is a message specifying the cause of the failure. Check with the system administrator to see if your entry in the password file has been deleted by mistake. Kerberos-specific errors are listed in sis(5). WARNINGS
For security reasons, the and files should exist, even if empty, and they should be readable and writable only by the owner. Note also that all information, including any passwords asked for, is passed unencrypted between the two hosts. If is run with an interactive command, it hangs. DEPENDENCIES
is the same service as on BSD systems. The name was changed due to a conflict with the existing System V command (restricted shell). AUTHOR
was developed by the University of California, Berkeley. FILES
for version of the command invoked only with hostname SEE ALSO
rlogin(1), remshd(1M), rexecd(1M), inetsvcs_sec(1M), gethostent(3N), rcmd(3N), rcmd_af(3N), rexec(3N), hosts.equiv(4), hosts(4). rexec(1)
All times are GMT -4. The time now is 01:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy