Sponsored Content
Top Forums UNIX for Advanced & Expert Users wget assistance to manage parent directories... Post 302364227 by mr_manny on Thursday 22nd of October 2009 10:59:39 AM
Old 10-22-2009
wget assistance to manage parent directories...

looking for a wget option that does not retrieve entire path from source box...


currently working with the following syntax:
Code:
wget --no-verbose --mirror --no-parent --no-host-directories --page-requisites --ftp-user=mis --ftp-password=secret  ftp://192.x.x.x/tmp/test


is anyone familiar with the syntax needed to recursively retrieve the directory test, without /tmp ?


thanks in advance,
manny

---------- Post updated at 09:59 AM ---------- Previous update was at 09:33 AM ----------

--cut-dirs=2 was all that was needed Smilie

happy thursday,
manny

Last edited by Yogesh Sawant; 11-03-2009 at 11:09 AM.. Reason: added code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Manage Mail

I have recently taken over a UNIX system from another programmer and am just beginning to learn UNIX. When I enter the MAIL command, the data scrolls off the screen for five minutes. Some of it is several years old. Can I tell the MAIL command to give me the last few items or the last few... (1 Reply)
Discussion started by: SUSANR9999
1 Replies

2. Shell Programming and Scripting

full path of a file situated either in parent's dir. or parent's parent dir. so on...

hi experts(novice people can stay away as it is no child's game), i am developing a script which works like recycle bin of windows. the problem i am facing is that when ever i am trying to delete a file which is situated in parent directory or parent's parent directory i am unable to... (1 Reply)
Discussion started by: yahoo!
1 Replies

3. Solaris

shell-init: could not get current directory: getcwd: cannot access parent directories

Hello root@ne-ocadev-1:/root/scripts>su espos -c find /a35vol100/ESPOS/oracle/db/9.2.0/oradata/ESPOS/archive -type f -atime +10 -exec ls {} shell-init: could not get current directory: getcwd: cannot access parent directories: Permission denied find: insufficient number of... (6 Replies)
Discussion started by: babu.knb
6 Replies

4. UNIX for Advanced & Expert Users

chmod to parent and sub directories ?

Hi folk, Could you please give me command to give the rwx permissions to the parent and its sub directories ? Is it possible to fire one command or Script for giving permission to both the parent and its sub directories. I meant to say something like in recurcive. I am using AIX 5.2 ... (2 Replies)
Discussion started by: varungupta
2 Replies

5. Shell Programming and Scripting

Working with directories, need assistance

Hello there, I have the following issue and I need you assistance. I have created a script that searches for directories that have spaces, for example: ./assets/en/images/pricing/current offers/SIMPLE GRID ./assets/en/images/pricing/current offers/ADVERTISED PRICE But now the... (4 Replies)
Discussion started by: jpgleon
4 Replies

6. Shell Programming and Scripting

Copying a files from a filter list and creating their associated parent directories

Hello all, I'm trying to copy all files within a specified directory to another location based on a find filter of mtime -1 (Solaris OS). The issue that I'm having is that in the destination directory, I want to retain the source directory structure while copying over only the files that have... (4 Replies)
Discussion started by: hunter55
4 Replies

7. Shell Programming and Scripting

Moving files from several directories into parent

I am fairly new to bash(but am proficient in C++), and have only completed a few simple scripts. This is my first script that I actually need to do a serious task. All of my audiobooks are stored in traditional MP3 format: Music/Artist/Album/*.mp3 (which in this case is... (0 Replies)
Discussion started by: gamendorf
0 Replies

8. Shell Programming and Scripting

forking a child process and kill its parent to show that child process has init() as its parent

Hi everyone i am very new to linux , working on bash shell. I am trying to solve the given problem 1. Create a process and then create children using fork 2. Check the Status of the application for successful running. 3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies

9. UNIX for Dummies Questions & Answers

parent directories

can anyone explain parent directories in detail. for example /home/unix/jones i'm not understanding what exactly the parent directory is. Thanks! (5 Replies)
Discussion started by: austing5
5 Replies

10. Shell Programming and Scripting

Wget - working in browser but cannot download from wget

Hi, I need to download a zip file from my the below US govt link. https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP I only have wget utility installed on the server. When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies
GIT-FTP(1)						      General Commands Manual							GIT-FTP(1)

NAME
Git-ftp - FTP done the Git way SYNOPSIS
git-ftp [actions] [options] [url]... DESCRIPTION
This manual page documents briefly the git-ftp program. Git-ftp is a FTP client using Git to determine which local files to upload or which files should be deleted on the remote host. It saves the deployed state by uploading the SHA1 hash in the .git-ftp.log file. There is no need for Git (http://git-scm.org) to be installed on the remote host. Even if you play with different branches, git-ftp knows which files are different and only handles those files. No ordinary FTP client can do this and it saves time and bandwith. Another advantage is Git-ftp only handles files which are tracked with Git (http://git-scm.org). ACTIONS
init Initializes the first upload to remote host. push Uploads files which have changed since last upload. catchup Uploads the .git-ftp.log file only. We have already uploaded the files to remote host with a different program and want to remember its state by uploading the .git-ftp.log file. show Downloads last uploaded SHA1 from log and hooks `git show`. add-scope <scope> Creates a new scope (e.g. dev, production, testing, foobar). This is a wrapper action over git-config. See SCOPES section for more information. remove-scope <scope> Remove a scope. help Prints a usage help. OPTIONS
-u [username], --user [username] FTP login name. If no argument is given, local user will be taken. -p [password], --passwd [password] FTP password. If no argument is given, a password prompt will be shown. -k [[user]@[account]], --keychain [[user]@[account]] FTP password from KeyChain (Mac OS X only). -a, --all Uploads all files of current Git checkout. -c, --commit Sets the SHA1 hash of last deployed commit by option. -A, --active Uses FTP active mode. -s <scope>, --scope <scope> Using a scope (e.g. dev, production, testing, foobar). See SCOPE and DEFAULTS section for more information. -l, --lock Enable remote locking. -D, --dry-run Does not upload or delete anything, but tries to get the .git-ftp.log file from remote host. -f, --force Does not ask any questions, it just does. -n, --silent Be silent. -h, --help Prints some usage information. -v, --verbose Be verbose. -vv Be as verbose as possible. --syncroot Specifies a directory to sync from as if it were the git project root path. --connections Number of simultanious connections (Linux only). --version Prints version. URL
The scheme of an URL is what you would expect protocol://host.domain.tld:port/path Below a full featured URL to host.exmaple.com on port 2121 to path mypath using protocol ftp: ftp://host.example.com:2121/mypath But, there is not just FTP. Supported protocols are: ftp://... FTP (default if no protocol is set) sftp://... SFTP ftps://... FTPS ftpes://... FTP over explicit SSL (FTPES) protocol DEFAULTS
Don't repeat yourself. Setting defaults for git-ftp in .git/config $ git config git-ftp.<(url|user|password)> <value> Everyone likes examples $ git config git-ftp.user john $ git config git-ftp.url ftp.example.com $ git config git-ftp.password secr3t $ git config git-ftp.connections 10 $ git config git-ftp.syncroot path/dir After setting those defaults, push to john@ftp.example.com is as simple as $ git ftp push SCOPES
Need different defaults per each system or environment? Use the so called scope feature. Useful if you use multi environment development. Like a development, testing and a production environment. $ git config git-ftp.<scope>.<(url|user|password)> <value> So in the case below you would set a testing scope and a production scope. Here we set the params for the scope "testing" $ git config git-ftp.testing.url ftp.testing.com:8080/foobar-path $ git config git-ftp.testing.password simp3l Here we set the params for the scope "production" $ git config git-ftp.production.user manager $ git config git-ftp.production.url live.example.com $ git config git-ftp.production.password n0tThatSimp3l Pushing to scope testing alias john@ftp.testing.com:8080/foobar-path using password simp3l $ git ftp push -s testing Note: The SCOPE feature can be mixed with the DEFAULTS feature. Because we didn't set the user for this scope, git-ftp uses john as user as set before in DEFAULTS. Pushing to scope production alias manager@live.example.com using password n0tThatSimp3l $ git ftp push -s production You can also create scopes using the add-scope action. All settings can be defined in the URL. Here we create the production scope using add-scope $ git ftp add-scope production ftp://manager:n0tThatSimp3l@live.example.com/foobar-path Deleting scopes is easy using the remove-scope action. $ git ftp remove-scope production IGNORING FILES
Add file names to .git-ftp-ignore to be ignored. Ignoring all in Directory config: config/* Ignoring all files having extension .txt in ./ : *.txt This ignores a.txt and b.txt but not dir/c.txt Ingnoring a single file called gargantubrain.txt: gargantubrain.txt EXIT CODES
There are a bunch of different error codes and their corresponding error messages that may appear during bad conditions. At the time of this writing, the exit codes are: 1 Unknown error 2 Wrong Usage 3 Missing arguments 4 Error while uploading 5 Error while downloading 6 Unknown protocol 7 Remote locked 8 Not a Git project KNOWN ISSUES &; BUGS The upstream BTS can be found at <http://github.com/resmo/git-ftp/issues>. AUTHORS
Rene Moser <mail@renemoser.net>. git-ftp User Manual December 23, 2010 GIT-FTP(1)
All times are GMT -4. The time now is 01:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy