Automate file transfer from Windows to Unix
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I have the following situation: users update csv
/txt
files on daily basis on Windows. I use those flat files as input for my Oracle scripts which is on Unix. I need a script/method of transferring those flat files from Windows to Unix.
shell-script windows ftp file-copy
add a comment |
up vote
4
down vote
favorite
I have the following situation: users update csv
/txt
files on daily basis on Windows. I use those flat files as input for my Oracle scripts which is on Unix. I need a script/method of transferring those flat files from Windows to Unix.
shell-script windows ftp file-copy
What kind of access do you have on the Unix machine? Shell (SSH), FTP, anything else?
– ddeimeke
May 3 '12 at 11:53
Don't use ftp, it makes username/password travel the network in clear text. Scp is easiest to script alternative, sftp isn't too bad either. Check Bruce's answer.
– jippie
May 3 '12 at 18:09
WinSCP.exe
is a useful tool, as well as usingPuTTy.exe
(like @BruceEdiger mentioned)
– Kevdog777
Jun 10 '16 at 9:49
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I have the following situation: users update csv
/txt
files on daily basis on Windows. I use those flat files as input for my Oracle scripts which is on Unix. I need a script/method of transferring those flat files from Windows to Unix.
shell-script windows ftp file-copy
I have the following situation: users update csv
/txt
files on daily basis on Windows. I use those flat files as input for my Oracle scripts which is on Unix. I need a script/method of transferring those flat files from Windows to Unix.
shell-script windows ftp file-copy
shell-script windows ftp file-copy
edited Nov 17 at 1:18
Rui F Ribeiro
38.2k1475123
38.2k1475123
asked May 3 '12 at 10:15
user18355
21112
21112
What kind of access do you have on the Unix machine? Shell (SSH), FTP, anything else?
– ddeimeke
May 3 '12 at 11:53
Don't use ftp, it makes username/password travel the network in clear text. Scp is easiest to script alternative, sftp isn't too bad either. Check Bruce's answer.
– jippie
May 3 '12 at 18:09
WinSCP.exe
is a useful tool, as well as usingPuTTy.exe
(like @BruceEdiger mentioned)
– Kevdog777
Jun 10 '16 at 9:49
add a comment |
What kind of access do you have on the Unix machine? Shell (SSH), FTP, anything else?
– ddeimeke
May 3 '12 at 11:53
Don't use ftp, it makes username/password travel the network in clear text. Scp is easiest to script alternative, sftp isn't too bad either. Check Bruce's answer.
– jippie
May 3 '12 at 18:09
WinSCP.exe
is a useful tool, as well as usingPuTTy.exe
(like @BruceEdiger mentioned)
– Kevdog777
Jun 10 '16 at 9:49
What kind of access do you have on the Unix machine? Shell (SSH), FTP, anything else?
– ddeimeke
May 3 '12 at 11:53
What kind of access do you have on the Unix machine? Shell (SSH), FTP, anything else?
– ddeimeke
May 3 '12 at 11:53
Don't use ftp, it makes username/password travel the network in clear text. Scp is easiest to script alternative, sftp isn't too bad either. Check Bruce's answer.
– jippie
May 3 '12 at 18:09
Don't use ftp, it makes username/password travel the network in clear text. Scp is easiest to script alternative, sftp isn't too bad either. Check Bruce's answer.
– jippie
May 3 '12 at 18:09
WinSCP.exe
is a useful tool, as well as using PuTTy.exe
(like @BruceEdiger mentioned)– Kevdog777
Jun 10 '16 at 9:49
WinSCP.exe
is a useful tool, as well as using PuTTy.exe
(like @BruceEdiger mentioned)– Kevdog777
Jun 10 '16 at 9:49
add a comment |
2 Answers
2
active
oldest
votes
up vote
7
down vote
You could use the SCP program that comes with famed terminal emulator PuTTY: pscp.exe
If you create public/private key files, pscp.exe should have the ability to just do something like:
pscp *.csv *.txt username@unixhost:whatever/subdirectory/
from inside a .bat file.
A cmd file would give him the extended syntax on windows.psftp
is another option with putty.
– Nils
May 3 '12 at 20:28
add a comment |
up vote
2
down vote
You have several options available. Choose one that you are most comfortable with. One potential would be to set up an SMB/CIFS share on the Unix host.
In a script from each Windows workstation, mount the SMB/CIFS share with the net
command.
net use \computernamesharename /persistent:no
After completion of the copy
or move
of the file to the SMB/CIFS share, you could optionally remove the share from the Windows workstation.
net use \computernamesharename /delete
You can get full options of the net
command by running net help use
. Here is a good unofficial guide to configuring Samba.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
You could use the SCP program that comes with famed terminal emulator PuTTY: pscp.exe
If you create public/private key files, pscp.exe should have the ability to just do something like:
pscp *.csv *.txt username@unixhost:whatever/subdirectory/
from inside a .bat file.
A cmd file would give him the extended syntax on windows.psftp
is another option with putty.
– Nils
May 3 '12 at 20:28
add a comment |
up vote
7
down vote
You could use the SCP program that comes with famed terminal emulator PuTTY: pscp.exe
If you create public/private key files, pscp.exe should have the ability to just do something like:
pscp *.csv *.txt username@unixhost:whatever/subdirectory/
from inside a .bat file.
A cmd file would give him the extended syntax on windows.psftp
is another option with putty.
– Nils
May 3 '12 at 20:28
add a comment |
up vote
7
down vote
up vote
7
down vote
You could use the SCP program that comes with famed terminal emulator PuTTY: pscp.exe
If you create public/private key files, pscp.exe should have the ability to just do something like:
pscp *.csv *.txt username@unixhost:whatever/subdirectory/
from inside a .bat file.
You could use the SCP program that comes with famed terminal emulator PuTTY: pscp.exe
If you create public/private key files, pscp.exe should have the ability to just do something like:
pscp *.csv *.txt username@unixhost:whatever/subdirectory/
from inside a .bat file.
answered May 3 '12 at 12:51
Bruce Ediger
34.4k565119
34.4k565119
A cmd file would give him the extended syntax on windows.psftp
is another option with putty.
– Nils
May 3 '12 at 20:28
add a comment |
A cmd file would give him the extended syntax on windows.psftp
is another option with putty.
– Nils
May 3 '12 at 20:28
A cmd file would give him the extended syntax on windows.
psftp
is another option with putty.– Nils
May 3 '12 at 20:28
A cmd file would give him the extended syntax on windows.
psftp
is another option with putty.– Nils
May 3 '12 at 20:28
add a comment |
up vote
2
down vote
You have several options available. Choose one that you are most comfortable with. One potential would be to set up an SMB/CIFS share on the Unix host.
In a script from each Windows workstation, mount the SMB/CIFS share with the net
command.
net use \computernamesharename /persistent:no
After completion of the copy
or move
of the file to the SMB/CIFS share, you could optionally remove the share from the Windows workstation.
net use \computernamesharename /delete
You can get full options of the net
command by running net help use
. Here is a good unofficial guide to configuring Samba.
add a comment |
up vote
2
down vote
You have several options available. Choose one that you are most comfortable with. One potential would be to set up an SMB/CIFS share on the Unix host.
In a script from each Windows workstation, mount the SMB/CIFS share with the net
command.
net use \computernamesharename /persistent:no
After completion of the copy
or move
of the file to the SMB/CIFS share, you could optionally remove the share from the Windows workstation.
net use \computernamesharename /delete
You can get full options of the net
command by running net help use
. Here is a good unofficial guide to configuring Samba.
add a comment |
up vote
2
down vote
up vote
2
down vote
You have several options available. Choose one that you are most comfortable with. One potential would be to set up an SMB/CIFS share on the Unix host.
In a script from each Windows workstation, mount the SMB/CIFS share with the net
command.
net use \computernamesharename /persistent:no
After completion of the copy
or move
of the file to the SMB/CIFS share, you could optionally remove the share from the Windows workstation.
net use \computernamesharename /delete
You can get full options of the net
command by running net help use
. Here is a good unofficial guide to configuring Samba.
You have several options available. Choose one that you are most comfortable with. One potential would be to set up an SMB/CIFS share on the Unix host.
In a script from each Windows workstation, mount the SMB/CIFS share with the net
command.
net use \computernamesharename /persistent:no
After completion of the copy
or move
of the file to the SMB/CIFS share, you could optionally remove the share from the Windows workstation.
net use \computernamesharename /delete
You can get full options of the net
command by running net help use
. Here is a good unofficial guide to configuring Samba.
answered May 3 '12 at 13:27
George M
8,94623247
8,94623247
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f37811%2fautomate-file-transfer-from-windows-to-unix%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What kind of access do you have on the Unix machine? Shell (SSH), FTP, anything else?
– ddeimeke
May 3 '12 at 11:53
Don't use ftp, it makes username/password travel the network in clear text. Scp is easiest to script alternative, sftp isn't too bad either. Check Bruce's answer.
– jippie
May 3 '12 at 18:09
WinSCP.exe
is a useful tool, as well as usingPuTTy.exe
(like @BruceEdiger mentioned)– Kevdog777
Jun 10 '16 at 9:49