Kumarjit, this really depends on the OS and way the remote directory is accessed.
For instance if you mount a remote windows box, I strongly recommend using gvfs to mount the remote local directory and file roller to decompress.
If it is a unix box, there are a few options. One would be to simply mount the remote file system.
In my example I create a directory underneath my operational directory, the directory is called "remote".
Next ..
If the objective is to now deflate into remote...
If it is not locally mounted you can use still other approaches.
Quote:
Originally Posted by kumarjt
I need to fit in a module in my Korn Shell script which would extract file_archive.tar.gz residing in the folder /apps/Test of my local machine into a folder /global/in a remote machine server1.
Hi
I'll be getting a directory path as the input to the script.
E.g. 1 abc/fsg/sdfhgsa/fasgfsd/adfghad/XXX/fhsad
e.g. 2 sadfg/sadgjhgds/sd/dtuc/cghcx/dtyue/dfghsdd/XXX/qytq
This input will be stored in a variable.
My query is how to extract the field in a variable VAR which occurs... (15 Replies)
Hi Everyone,
It would be helpful if someone helps me on this.
Requirement:
I have a directory which includes different types of files(for example *.java,*.class),but not restricted for only these types. I need to find the same types of file extensions from its directories and subdirectories... (3 Replies)
Hi guys. I'm doing some bash scripting and have run into a snag.
Say I have the path:
/home/one/two/three/
All I need is the 'three' while making a filename.
Is there an easy way to do this? I've tried using grep (because I'm that smart.) cut (as I'm unable to tell how many fields there... (3 Replies)
Hi,
I have following path:
set file_path = D:/forums/prac/somedir/new1/file1.txt
or set file_path = E:/new/forums1/prac/somedir/new2/file2.txt
I need to grep "somedir" from file path. In this case preceding directory "prac" remains same for both the paths, but directories preceding... (7 Replies)
Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Hello everyone,
I am trying to make a script in KSH that will zip an entire directory but leave out one file in that directory. I then need to send that zipped directory to another UNIX box. I am new to UNIX and would appreciate a good template to study from. (3 Replies)
I have system that generate files every 1 hours , i only have ftp connection from my local server to remote .
$ ls -al
-rw-r--r-- 1 water None 0 Feb 7 18:09 a.0800
-rw-r--r-- 1 water None 0 Feb 7 18:09 a.0900
-rw-r--r-- 1 water None 0 Feb 7 18:09 a.1000
is there any perl / php... (3 Replies)
I need a hint for extracting and copying only the loads of .mp3 files from one directory and its subdirectories to get them all into only one directory. This way I am doing gives me a identical copy with hundreds of subdirectories. But I just don't get it to extract only the files. Though I tried... (9 Replies)
I have a file, in Windows, called php_0.27.tar.gz and want to extract it to
C:\Program Files\PHP\script through Cygwin using this command:
tar -xf php_0.27.tar.gz -C /Program Files/PHP/script But I got an error saying:
tar: Files: Not found in archive
I tried this command too:
... (8 Replies)
Dear Experts,
I have some directory structure something like follows. I would like to cut portion of it. Would you please help me? I have to run this on several sql's. The directory path is dynamic. I have cut what comes after first "sql" string.
Input:... (3 Replies)
Discussion started by: srikanth38
3 Replies
LEARN ABOUT DEBIAN
gbp-create-remote-repo
GBP-CREATE-REMOTE-REPO(1) git-buildpackage Manual GBP-CREATE-REMOTE-REPO(1)NAME
gbp-create-remote-repo - Create remote repositories
SYNOPSIS
gbp-create-remote-repo [ --verbose ] [ --color=[auto|on|off] ] [ --remote-url-pattern=url-pattern ] [ --remote-name=name ] [ --template-
dir=directory ] [ --remote-config=config ] [ --[no-]pristine-tar ] [ --debian-branch=branch_name ] [ --upstream-branch=branch_name ] [
--[no-]track ]
DESCRIPTION
gbp-create-remote-repo creates a repository at a remote location via ssh and pushes the local repository into it. It then sets up remote
branch tracking so you can use gbp-pull to update your repository from there.
Before performing any action on the remote location it will print the remote URL and ask for confirmation.
Note: By default the remote repositories are created in the collab-maint repository on git.debian.org.
OPTIONS --remote-url-pattern=pattern
Where to create the remote repository. The part %(pkg)s will be replaced by the package name.
--remote-name=name
What name git will use when refering to that repository, e.g. 'origin'.
--template-dir=directory
Template directory to pass to git init on the remote side. This can be used to customize the remote repository, e.g. to set up
hooks.
--remote-config=config
Name of a config file section in gbp.conf that specifies the above paramters. See [XRef to GBP.MAN.GBP.CONF] manpage for details.
--debian-branch=branch_name
The branch in the Git repository the Debian package is being developed on, default is master.
--upstream-branch=branch_name
The branch in the Git repository the upstream sources are put onto. Default is upstream.
--pristine-tar
Whether to push the pristine tar branch.
--verbose
-v verbose execution
--color=[auto|on|off]
Whether to use colored output.
--[no-]track
Whether to set up branch tracking for the debian, upstream and pristine-tar branches.
CONFIGURATION FILES
Several gbp.conf files are parsed to set defaults for the above commandline arguments. See the [XRef to GBP.MAN.GBP.CONF] manpage for
details.
SEE ALSO git-buildpackage(1), gbp-pull(1), gbp.conf(5)AUTHOR
Guido Guenther <agx@sigxcpu.org>
01 June 2012 GBP-CREATE-REMOTE-REPO(1)