I want to check if the file that i want to get of the remote server exist or not.
then i want to check if one file that i want to put in the remote server exist after the put command, and if i try to do a rm in the remote control i want to check if the rm command itīs OK or not.
Ultimately, i want to check after i do a put/get/rm command if the command really had do this actions or not.
Hi guys,
I'm having a problem with F-Secure Unix.
When I try a simple command;
sftp> put local.test remote.test
I expect that the local file local.test would be copied to the remote file remote.test
However sftp is attempting to copy local.test & remote.test from the local machine, as if... (2 Replies)
I have tried winscp, filezilla to copy data from windows xp SP2 machine to the sun sparc unix machine. However speed is around 120 to 130 kb/sec. I do have lot of files & with large size.
So I switched to windows command prompt & transfered few files using sftp command. Its very fast as compared... (0 Replies)
Hi All Experts,
I hope you are all ok! :D
My question is simple but I was not able to find an answer in the internet, and that's why I am here!
My question is: when I sftp to a server and use "put -P" option to put a file, it keeps the file's full permission and access time. Check below... (5 Replies)
Hi,
ServerA (SFTP server)
ServerB (SFTP client)
ServerB:> sftp user@ServerA
ServerB:> put sample.txt
ServerB:> get sample2.txt
My question is that which machine will encrypt the sample.txt and sample2.txt files.
Thanks (8 Replies)
HI,
I have one file which is as below
cat /var/tmp/test1 | awk '{ print $3}'|grep -v affected
Data
----------
200.4
. The above 200 value is changable by the database script.
Now I need a script that checks the value 200.4 and the script shoud give out put if value is more than 225 (2 Replies)
Hi all,
i have to sftp a file to another server
I don't have "expect" or sshpass on my machine its solaris 10,
i want to pass password in command line or
after doing this
sftp user@server how to automatically provide the password as input ( stored in some variable or so)
... (1 Reply)
Hi,
I am getting the below error while doing sftp in a script file but the same is getting executed when i run from command prompt
./CARE_SM2_SFTP.sh: put: not found
Code :-
sftp ${USER_ID}@${FTPHOST4}:/opt/path
put <Filename with path>
chmod 777 <FileName with Path>... (2 Replies)
Hi Folks,
I am trying to copy a directory along with sub-directories to SFTP server.
I have connected to SFTP and tried to run the below command:
sftp> get -r abc/*
It is throwing the error Invalid flag -r
Can you please let me know the ways to copy a directory from Local to SFTP
... (1 Reply)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Hello all,
I am trying to sftp files to a server, I am using keys as authentication and I can connect with no problems. I can also put a sample file on the server.
When I tried to automate this process with a .sh file I get the
"couldn't canonicalize: Failure".
This is my script: sftp... (5 Replies)
Discussion started by: KidKoder
5 Replies
LEARN ABOUT DEBIAN
git-cat-file
GIT-CAT-FILE(1) Git Manual GIT-CAT-FILE(1)NAME
git-cat-file - Provide content or type and size information for repository objects
SYNOPSIS
git cat-file (-t | -s | -e | -p | <type> | --textconv ) <object>
git cat-file (--batch | --batch-check) < <list-of-objects>
DESCRIPTION
In its first form, the command provides the content or the type of an object in the repository. The type is required unless -t or -p is
used to find the object type, or -s is used to find the object size, or --textconv is used (which implies type "blob").
In the second form, a list of objects (separated by linefeeds) is provided on stdin, and the SHA1, type, and size of each object is printed
on stdout.
OPTIONS
<object>
The name of the object to show. For a more complete list of ways to spell object names, see the "SPECIFYING REVISIONS" section in
gitrevisions(7).
-t
Instead of the content, show the object type identified by <object>.
-s
Instead of the content, show the object size identified by <object>.
-e
Suppress all output; instead exit with zero status if <object> exists and is a valid object.
-p
Pretty-print the contents of <object> based on its type.
<type>
Typically this matches the real type of <object> but asking for a type that can trivially be dereferenced from the given <object> is
also permitted. An example is to ask for a "tree" with <object> being a commit object that contains it, or to ask for a "blob" with
<object> being a tag object that points at it.
--textconv
Show the content as transformed by a textconv filter. In this case, <object> has be of the form <treeish>:<path>, or :<path> in order
to apply the filter to the content recorded in the index at <path>.
--batch
Print the SHA1, type, size, and contents of each object provided on stdin. May not be combined with any other options or arguments.
--batch-check
Print the SHA1, type, and size of each object provided on stdin. May not be combined with any other options or arguments.
OUTPUT
If -t is specified, one of the <type>.
If -s is specified, the size of the <object> in bytes.
If -e is specified, no output.
If -p is specified, the contents of <object> are pretty-printed.
If <type> is specified, the raw (though uncompressed) contents of the <object> will be returned.
If --batch is specified, output of the following form is printed for each object specified on stdin:
<sha1> SP <type> SP <size> LF
<contents> LF
If --batch-check is specified, output of the following form is printed for each object specified on stdin:
<sha1> SP <type> SP <size> LF
For both --batch and --batch-check, output of the following form is printed for each object specified on stdin that does not exist in the
repository:
<object> SP missing LF
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GIT-CAT-FILE(1)