07-10-2008
I would recommend SCP
If you have SSH access to the server I would recommend using scp to copy it from your Windows box to your Unix server using utilities such as pscp.exe that is distributed with PuTTY.
Not necessary, but I am just paranoid on sending files over any network that are not encrypted.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a log file that I would like to copy from my windows pc to my unix pc for further processuon. Is there any command that can help me perform this task?. I already have a cron to fire up the process, but nothing seems to be coming up.
I am trying to use ftp but nothing is coming forth.... (8 Replies)
Discussion started by: odogbolu98
8 Replies
2. UNIX for Dummies Questions & Answers
Where I work we run unix through Microsoft windows, so my unix Windows appear on my MS Windows desktop.
I surf the net with Microsoft Internet Explorer, is there anyway I can copy and paste examples from the net into my Unix windows?
Thank you (9 Replies)
Discussion started by: Loaded Gun
9 Replies
3. UNIX for Dummies Questions & Answers
How do i copy a jar file from Windows to Unix?I am using eTrust single sign on tool to connect to the unix server. (1 Reply)
Discussion started by: ghanshyam
1 Replies
4. UNIX for Dummies Questions & Answers
Hi I need to copy a file from the remote unix server to windows machine.
I read lot of thrad but didn't worked out.
Requesting all to please help. (2 Replies)
Discussion started by: sameerspice
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all
Is there a way to copy a unix filesystem (folders, subfolder and files) to windows (AD) and at the same time maintaine the unix permission (user/group) when copied to windows (AD) filesystem?
I want the same permission in windows as I had in unix in one copy job.
Is this... (8 Replies)
Discussion started by: tomjen
8 Replies
6. UNIX for Dummies Questions & Answers
I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies
7. UNIX for Dummies Questions & Answers
I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies
8. Shell Programming and Scripting
How to copy the complete content from a file in vi Editor to windows ( notepad ).
I can use " select " and paste it to windows but this is restricted to current page. Not allowing me to scroll down or up when selecting the content.:confused: (1 Reply)
Discussion started by: frintocf
1 Replies
9. Shell Programming and Scripting
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies
10. Shell Programming and Scripting
Hi Folks,
I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml
which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/
now the credentials of unix box are
abc345 -->(dummyid)
ftyiu88--->(dummy passwd)
... (4 Replies)
Discussion started by: punpun66
4 Replies
LEARN ABOUT DEBIAN
getpeereid
GETPEEREID(3) BSD Library Functions Manual GETPEEREID(3)
NAME
getpeereid -- get the effective credentials of a UNIX-domain peer
LIBRARY
Utility functions from BSD systems (libbsd, -lbsd)
SYNOPSIS
#include <sys/types.h>
#include <bsd/unistd.h>
int
getpeereid(int s, uid_t *euid, gid_t *egid);
DESCRIPTION
The getpeereid() function returns the effective user and group IDs of the peer connected to a UNIX-domain socket. The argument s must be a
UNIX-domain socket (unix(4)) of type SOCK_STREAM on which either connect(2) or listen(2) have been called. The effective used ID is placed
in euid, and the effective group ID in egid.
The credentials returned to the listen(2) caller are those of its peer at the time it called connect(2); the credentials returned to the
connect(2) caller are those of its peer at the time it called listen(2). This mechanism is reliable; there is no way for either side to
influence the credentials returned to its peer except by calling the appropriate system call (i.e., either connect(2) or listen(2)) under
different effective credentials.
One common use of this routine is for a UNIX-domain server to verify the credentials of its client. Likewise, the client can verify the cre-
dentials of the server.
IMPLEMENTATION NOTES
On FreeBSD, getpeereid() is implemented in terms of the LOCAL_PEERCRED unix(4) socket option.
RETURN VALUES
The getpeereid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
The getpeereid() function fails if:
[EBADF] The argument s is not a valid descriptor.
[ENOTSOCK] The argument s is a file, not a socket.
[ENOTCONN] The argument s does not refer to a socket on which connect(2) or listen(2) have been called.
[EINVAL] The argument s does not refer to a socket of type SOCK_STREAM, or the kernel returned invalid data.
SEE ALSO
connect(2), getpeername(2), getsockname(2), getsockopt(2), listen(2), unix(4)
HISTORY
The getpeereid() function appeared in FreeBSD 4.6.
BSD
July 15, 2001 BSD