Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Viewing files of another unix server (in a folder) Post 302080731 by jim mcnamara on Thursday 20th of July 2006 09:50:52 AM
Old 07-20-2006
You can create an NFS mounted remote disk from Comp2 to Comp1. try man nfsd or man biod. IF this is part of startup on both machines, the remote filesystem will always be there on Comp1, barring problems.

You can also try
Code:
remsh Comp2 "ls /home/myfolder"

 

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
MH-DRAFT(5)							     [nmh-1.5]							       MH-DRAFT(5)

NAME
mh-draft - draft folder facility for nmh message system SYNOPSIS
any nmh command DESCRIPTION
There are a number of interesting advanced facilities for the composition of outgoing mail. The Draft Folder The comp, dist, forw, repl, and whom commands have two additional switches, -draftfolder +folder and -draftmessage msg which allow you to manipulate the various draft messages you are composing. If -draftfolder +folder is used, these commands are directed to construct a draft message in the indicated folder. (The "Draft-Folder" profile entry may be used to declare a default draft folder for use with comp, dist, forw, repl, and whom ). If the swith -draftmessage msg is given, the specified draft is used to compose the message. If -draftmessage msg is not used, then the draft defaults to `new' (create a new draft) unless the user invokes comp with -use, in which case the default is `cur'. Hence, the user may have several message compositions in progress simultaneously. Now, all of the nmh tools are available on each of the user's message drafts (e.g. show, scan, pick, and so on). If the folder does not exist, the user is asked if it should be created (just like with refile). Also, the last draft message the user was composing is known as `cur' in the draft folder. Furthermore, the send command has these switches as well. Hence, from the shell, the user can send off whatever drafts desired using the standard nmh `msgs' convention with -draftmessage msgs. If no `msgs' are given, it defaults to `cur'. In addition, all five programs have a -nodraftfolder switch, which undoes the last occurrence of -draftfolder folder (useful if the latter occurs in the user's nmh profile). If the user does not give the -draftfolder +folder switch, then all these commands act "normally". Note that the -draft switch to send and show still refers to the file called `draft' in the user's nmh directory. In the interests of economy of expression, when using comp or send, the user needn't prefix the draft `msg' or `msgs' with -draftmessage. Both of these commands accept a `file' or `files' argument, and they will, if given -draftfolder +folder treat these arguments as `msg' or `msgs'. (This may appear to be inconsistent, at first, but it saves a lot of typing) Hence, send -draftfolder +drafts first is the same as send -draftfolder +drafts -draftmessage first To make all this a bit more clear, here are some examples. Let's assume that the following entries are in the nmh profile: Draft-Folder: +drafts sendf: -draftfolder +drafts Furthermore, let's assume that the program sendf is a (symbolic) link in the user's $HOME/bin/ directory to send. Then, any of the com- mands comp dist forw repl constructs the message draft in the `draft' folder using the `new' message number. Furthermore, they each define `cur' in this folder to be that message draft. If the user were to use the quit option at `What now?' level, then later on, if no other draft composition was done, the draft could be sent with simply sendf Or, if more editing was required, the draft could be edited with comp -use Instead, if other drafts had been composed in the meantime, so that this message draft was no longer known as `cur' in the `draft' folder, then the user could scan the folder to see which message draft in the folder should be used for editing or sending. Clever users could even employ a back-quoted pick to do the work: comp -use `pick +drafts -to nmh-workers` or sendf `pick +drafts -to nmh-workers` Note that in the comp example, the output from pick must resolve to a single message draft (it makes no sense to talk about composing two or more drafts with one invocation of comp). In contrast, in the send example, as many message drafts as desired can appear, since send doesn't mind sending more than one draft at a time. Note that the argument -draftfolder +folder is not included in the profile entry for send, since when comp, et. al., invoke send directly, they supply send with the UNIX pathname of the message draft, and not a -draftmessage msg argument. As far as send is concerned, a draft folder is not being used. It is important to realize that nmh treats the draft folder like a standard nmh folder in nearly all respects. There are two exceptions: First, under no circumstancs will the -draftfolder folder switch cause the named folder to become the current folder. Obviously, if the folder appeared in the context of a standard +folder argument to an nmh program, as in scan +drafts it might become the current folder, depending on the context changes of the nmh program in question. Second, although conceptually send deletes the `msgs' named in the draft folder, it does not call delete-prog to perform the deletion. What Happens if the Draft Exists When the comp, dist, forw, and repl commands are invoked and the draft you indicated already exists, these programs will prompt the user for a reponse directing the program's action. The prompt is Draft ``/home/foobar/nmhbox/draft'' exists (xx bytes). Disposition? The appropriate responses and their meanings are: replace - deletes the draft and starts afresh list - lists the draft refile - files the draft into a folder and starts afresh quit - leaves the draft intact and exits In addition, if you specified -draftfolder folder to the command, then one other response will be accepted: new - finds a new draft just as if -draftmessage new had been given. Finally, the comp command will accept one more response: use - re-uses the draft just as if -use had been given. CONTEXT
None MH.6.8 11 June 2012 MH-DRAFT(5)
All times are GMT -4. The time now is 03:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy