Sponsored Content
Top Forums Shell Programming and Scripting BatchScript/Unix shell Script to check folder in Windows server Post 302711205 by DGPickett on Friday 5th of October 2012 01:49:49 PM
Old 10-05-2012
You could SAMBA mount the windows subtree on UNIX and use the bash/ksh/sh test "if [ -d YOUR_DIR_MOUNT_PATH ];then . . . ."

ftp/sftp or scp can create folders and copy files easily but you need a server on the target.

The tool smbget seems nice if you do not want to mount with SAMBA and you are pulling files from windows: Man Page for smbget (all Section 1) - The UNIX and Linux Forums A more versatile tool for SMB access is smbclient: Man Page for smbclient (all Section 1) - The UNIX and Linux Forums
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

HOW TO CHECK ONLY .C FILES EXISTS OR NOT IN A FOLDER using IF in C shell script?

Hi friends.. I hav a problem.... I dont know how to check .c files exists r not in a folder using IF in C shell script actually i tried like this if(=~ *.c) even though some .c files or there in the current folder..it is not entering int o the if control statement...... (17 Replies)
Discussion started by: p.hemadrireddy
17 Replies

2. Shell Programming and Scripting

shell script to ftp the files from windows to unix server

Hi, I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine. Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files from windows to unix box.When I searched in the... (10 Replies)
Discussion started by: kavithakuttyk
10 Replies

3. Shell Programming and Scripting

FTP from Unix Shell script to Windows Shared folder ?

Hi Before Posting my query in this forum, I have gone through various similar postings to get some idea on ftp and how to do that from unix shell script to windows server. My question is related to FTP'ing from Unix to windows shared folder My basic question is 1. Is it possible to do FTP... (4 Replies)
Discussion started by: shekharjchandra
4 Replies

4. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

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

5. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies

6. Shell Programming and Scripting

Unix shell script to delete files on windows server

Hi experts, can anyone suggest me on the below: how to write a shell script to search and delete files on windows server. -script runs on unix box -it should search for specific files on windows server and delete them periodically. (2 Replies)
Discussion started by: chpradeepch
2 Replies

7. Windows & DOS: Issues & Discussions

Transfer of zipped folder from windows desktop to UNIX server

Hi all, I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use... (3 Replies)
Discussion started by: sherin22
3 Replies

8. Shell Programming and Scripting

Need Shell Script to copy files from hp UNIX to windows server 2008

Need Shell Script to copy files from hp unix to windows server 2008 I tried to google and found some options but nothing worked I want a script to copy a file in unix to windows server so I can schedule the script on daily basis.Please help me its more needful for me. Let me know if any... (4 Replies)
Discussion started by: Lucky2Bv
4 Replies

9. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
SMBGETRC(5)						   File Formats and Conventions 					       SMBGETRC(5)

NAME
smbgetrc - configuration file for smbget SYNOPSIS
smbgetrc DESCRIPTION
This manual page documents the format and options of the smbgetrc file. This is the configuration file used by the smbget(1) utility. The file contains of key-value pairs, one pair on each line. The key and value should be separated by a space. By default, smbget reads its configuration from $HOME/.smbgetrc, though other locations can be specified using the command-line options. OPTIONS
The following keys can be set: resume on|off Whether aborted downloads should be automatically resumed. recursive on|off Whether directories should be downloaded recursively username name Username to use when logging in to the remote server. Use an empty string for anonymous access. password pass Password to use when logging in. workgroup wg Workgroup to use when logging in nonprompt on|off Turns off asking for username and password. Useful for scripts. debuglevel int (Samba) debuglevel to run at. Useful for tracking down protocol level problems. dots on|off Whether a single dot should be printed for each block that has been downloaded, instead of the default progress indicator. blocksize int Number of bytes to put in a block. VERSION
This man page is correct for version 3 of the Samba suite. SEE ALSO
smbget(1) and Samba(7). AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. This manual page was written by Jelmer Vernooij Samba 4.0 06/17/2014 SMBGETRC(5)
All times are GMT -4. The time now is 04:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy