The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To find the LATEST file from a dir on REMOTE machine and SCP to local machine? me_ub Red Hat 3 07-08-2009 01:57 AM
How to Copy Folder from one solaris machine to another? vaibhavvd SUN Solaris 8 07-22-2008 08:56 PM
How to unzip a zip file into a folder with the zip file's name? basis Shell Programming and Scripting 5 06-05-2008 08:10 AM
unzip files in a different folder agarwalniru UNIX for Dummies Questions & Answers 2 03-25-2008 03:36 PM
strange problem regarding zip/unzip from window to solaris machine Raj Kumar Arora SUN Solaris 11 01-23-2008 06:23 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-05-2009
siba siba is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 6
Unzip folder on remote machine

Hi !

I am trying to automate FTP transfer of some folders from one unix machine (a) to another one (b).
I run my shell script on machine a.
The problem I face is how to unzip the folder at the machine b with script run in machine a.

My first question: Is there any way to do this ?

My second question: Is this a good approch to automate FTP transfer of folders to run the shell script on machine a ? What if I try to write a script that can be run on machne b? Which approach is the most used and optimal one?
Since the folders in machine a are under CM (clearcase), it will be some complication to get around Config Spec when I run the script from machine b.

Rgds
Bob
  #2 (permalink)  
Old 07-05-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,400
use ssh to unzip a file on server b from server a..(it will ask password though) or establish a passwordless ssh connection(which is not adviced..
and for your second question you better run it from server a...

Last edited by vidyadhar85; 07-05-2009 at 04:56 PM..
  #3 (permalink)  
Old 07-05-2009
siba siba is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 6
Quote:
Originally Posted by vidyadhar85 View Post
use ssh to unzip a file on server b from server a..(it will ask password though) or establish a passwordless ssh connection(which is not adviced..
and for your second question you better run it from server a...


Thank you vidyadhar85. Since I am new to the unix world, I need to check this again with you: Do you mean that FTP can not help me solving this problem ? Why is ssh better in this case?
  #4 (permalink)  
Old 07-05-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,400
yes I afraid FTP won't help you to solve your problem....
as far as i know ssh will be a better option..
  #5 (permalink)  
Old 07-05-2009
siba siba is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 6
Quote:
Originally Posted by vidyadhar85 View Post
yes I afraid FTP won't help you to solve your problem....
as far as i know ssh will be a better option..

Thanks, I appreciate it.

Rgds
Bob
  #6 (permalink)  
Old 07-06-2009
siba siba is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 6
Sending zipped files from server (machine a) to Client (machine b) and unzip them by a command fom server o unzip them via ssh.
How does such a command look like n server?
Rgds
Bob
  #7 (permalink)  
Old 07-06-2009
rcjmack rcjmack is offline
Registered User
  
 

Join Date: Jun 2009
Location: Chicago IL
Posts: 10
Check out sftp or scp.

Here's a link that might be interesting:
SSH with Keys HOWTO: SSH with Keys in a console window
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0