Sponsored Content
Top Forums Shell Programming and Scripting Shell Script - If and smbclient (ftp)...help Post 302767029 by mcclunyboy on Wednesday 6th of February 2013 05:47:15 AM
Old 02-06-2013
Well now I know - I will simply move the final label to the right as it is likely less experienced people may need to review the scripts.

Thanks again
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

using ftp in a shell script.

I am trying to ftp some files from a certain directory, but i got an invalid command. does anybody know why i got this error? ftp -v -i -n <<SCRIPT open servername user username password cd /server/logs for file in MCWAS* do put ${file} /home/test/${file} done bye SCRIPT (2 Replies)
Discussion started by: caesarkim
2 Replies

2. Shell Programming and Scripting

ftp in shell script

Hi, I have to ftp to a remote machine. i have got the Ip, username and password and the file path.. I need to get the file name with out user intervention in my script.. is there any way to do this.. please help esham (2 Replies)
Discussion started by: esham
2 Replies

3. UNIX for Dummies Questions & Answers

Shell script for ftp

Hi ,, I am wrting a shell script to ftp a file from remote server but its giving some problem to me.can you help me in debugging this. #!/usr/bin/ksh HOST="some ip" user="user_name" passwd="password" ftp -n $HOST >>END_SCRIPT USER $user $passwd binary prompt get... (3 Replies)
Discussion started by: namishtiwari
3 Replies

4. Shell Programming and Scripting

FTP via shell script

Hi, I need to upload a file via ftp. I have given : ftp -n $HOST <<END quote user $USER quote pass $PASSWD prompt off put bus.txt quit END Its throwing a syntax error at "<<" symbol. What should be done for this ?? (2 Replies)
Discussion started by: risshanth
2 Replies

5. Shell Programming and Scripting

FTP using shell script

Hi All, I want to make a ftp call using a separate file where the ftp commands will reside. Please find below the details: I have 2 files Sample1.sh and Properties Properties --------- <username> <password> .... other ftp commands Sample1.sh ---------- ftp -v <servername> <... (1 Reply)
Discussion started by: pickpeters
1 Replies

6. Shell Programming and Scripting

Use ftp is a shell script

Hi, What i would like to do is to use a shell script connect to a remote computer and download files from a specific directory. I wrote the following script. #!/bin/sh HOST='IP' USER='yourid' PASSWD='yourpw' FILE='*.txt' REMOTEPATH=/incoming/MSC/ ftp $HOST <<END_SCRIPT user $USER... (3 Replies)
Discussion started by: chriss_58
3 Replies

7. UNIX for Dummies Questions & Answers

FTP shell script

Hi I am new in UNIX field. I don't know if I am posting in right forum or not. And I have also found out that there are so many posts about ftp shell scripting. I have tried those but actually having some problem. Well, my script should do the following..... It finds files( the filename ended... (3 Replies)
Discussion started by: abhishek_510
3 Replies

8. Shell Programming and Scripting

Help with Shell script for FTP

#!/usr/bin/ksh export filename=/grid/PowerCenter/inbound/AT/filelist.txt export SOURCE_DIR=/grid/PowerCenter/inbound/AT export ICOMS_FTP_TGT_DIR1=/dw/input/ATU/ICOM_SERV1 export ICOMS_FTP_TGT_DIR2=/dw/input/AT/ICOM_SERV2 export FILE_MASK="ATRPU_RP_ATU" echo "start" ftp_data_file() { ... (15 Replies)
Discussion started by: vsmeruga
15 Replies

9. UNIX for Dummies Questions & Answers

FTP in Shell Script

Dear All, I am using FTP in a script. But when i exit from the FTP session, the commands written after EOF don't get executed. i.e. ftp <<EOF quote $login quote $password cd /tmp mget *somefile* bye EOF echo $some_variable #This last echo command or whatever piece of commands i... (10 Replies)
Discussion started by: Salman786
10 Replies

10. Shell Programming and Scripting

Need a Shell Script for FTP

Hello Brothers, I am new in shell script.I need a shell script that will run in Linux Server. Script will connect to windows FTP server before connection script will check the connection from linux server to windows server, if connection is ok then show a message and get specific file and... (34 Replies)
Discussion started by: maruf
34 Replies
GIT-REVIEW(1)						    BSD General Commands Manual 					     GIT-REVIEW(1)

NAME
git-review -- Submit changes to Gerrit for review SYNOPSIS
git-review [-r remote] [-uv] -d change [branch] git-review [-r remote] [-fnuv] -s [branch] git-review [-fnuvDR] [-r remote] [-t topic] [branch] git-review --version DESCRIPTION
git-review automates and streamlines some of the tasks involved with submitting local changes to a Gerrit server for review. It is designed to make it easier to apprehend Gerrit, especially for users that have recently switched to Git from another version control system. The following options are available: -d change, --download=change Download change from Gerrit into a local branch. The branch will be named after the patch author and the name of a topic. If the local branch already exists, it will attempt to update with the latest patchset for this change. -f, --finish Close down the local branch and switch back to the target branch on successful submission. -n, --dry-run Don't actually perform any commands that have direct effects. Print them instead. -r remote, --remote=remote Git remote to use for Gerrit. -s, --setup Just run the repo setup commands but don't submit anything. -t topic, --topic=topic Sets the target topic for this change on the gerrit server. If not specified, a bug number from the commit summary will be used. Alternatively, the local branch name will be used if different from remote branch. -u, --update Skip cached local copies and force updates from network resources. -l, --list List the available reviews on the gerrit server for this project. -y, --yes Indicate that you do, in fact, understand if you are submitting more than one patch. -v --verbose Turns on more verbose output. -D, --draft Submit review as a draft. Requires Gerrit 2.3 or newer. -R, --no-rebase Do not automatically perform a rebase before submitting the change to Gerrit. When submitting a change for review, you will usually want it to be based on the tip of upstream branch in order to avoid possible conflicts. When amending a change and rebasing the new patchset, the Gerrit web interface will show a difference between the two patchsets which contains all commits in between. This may confuse many reviewers that would expect to see a much simpler difference. --version Print the version number and exit. FILES
To use git-review with your project, it is recommended that you create a file at the root of the repository named .gitreview and place infor- mation about your gerrit installation in it. The format is similar to the Windows .ini file format: [gerrit] host=hostname port=TCP port number of gerrit project=project name defaultbranch=branch to work on It is also possible to specify optional default name for the Git remote using the defaultremote configuration parameter. Setting defaultrebase to zero will make git-review not to rebase changes by default (same as the -R command line option) [gerrit] host=review.example.com port=29418 project=department/project.git defaultbranch=master defaultremote=review defaultrebase=0 EXAMPLES
To fetch a remote change number 3004: $ git-review -d 3004 Downloading refs/changes/04/3004/1 from gerrit into review/someone/topic_name Switched to branch 'review/someone/topic_name $ git branch master * review/author/topic_name Gerrit looks up both name of the author and the topic name from Gerrit to name a local branch. This facilitates easier identification of changes. To send a change for review and delete local branch afterwards: $ git-review -f remote: Resolving deltas: 0% (0/8) To ssh://username@review.example.com/departement/project.git * [new branch] HEAD -> refs/for/master/topic_name Switched to branch 'master' Deleted branch 'review/someone/topic_name' $ git branch * master An example .gitreview configuration file for a project department/project hosted on review.example.com port 29418 in the branch master : [gerrit] host=review.example.com port=29418 project=department/project.git defaultbranch=master BUGS
Bug reports can be submitted to https://launchpad.net/git-review AUTHORS
git-review is maintained by OpenStack, LLC This manpage has been enhanced by: Antoine Musso <hashar@free.fr> Marcin Cieslak <saper@saper.info> April 4th, 2012
All times are GMT -4. The time now is 03:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy