05-14-2008
create folder in windows from unix while FTP
Hi,
I would like to know if it's possible to create a folder in a Windows Server while running a ftp script in Unix.
The idea is to create a script that searches for different files in folders, and when the file is found, take the path of that file and create it to Windows and ftp the file to that path.
Also if anyone can help me by providing code on how to build that script i would appreciate it very much.
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Haya mates,
I have 2 seperate physical drives ie c:\ with windows 98 and D:\ with Linux mandrake installed. I need to have access to certain directories in my windows d drive how can i manage that?
best regards abdul
::email removed:: (2 Replies)
Discussion started by: abdul
2 Replies
2. UNIX for Dummies Questions & Answers
Is it possible to do something like this? Have a folder shared on a Windows machine and then be able to view it under a Unix server? Sort of like a reverse Samaba share? (5 Replies)
Discussion started by: LordJezo
5 Replies
3. UNIX for Dummies Questions & Answers
1. How do i replicate folders between windows and unix.
if i create a subfolder under NDC in windows, it should automatically create a
subfolder in unix as well.
windows nt
/NDC/SUBFOLDERS
hp ux
/NDC/SUBFOLDERS
2. How do i ftp a file from windows to unix using automated... (0 Replies)
Discussion started by: systemsb
0 Replies
4. Shell Programming and Scripting
Hi
what command to be used to FTP files from the windows directory into a folder in unix environment using shell script
The script should be able to recursively search into 100 subdirectories within my windows directory for .xml files.
Can anyone help me with this...
thnx (6 Replies)
Discussion started by: lakshmis10
6 Replies
5. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
6. Shell Programming and Scripting
I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation.
At the end of each day, these log files are FTP'd to a directory on a UNIX box.
When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp... (2 Replies)
Discussion started by: gavman99
2 Replies
7. Windows & DOS: Issues & Discussions
Hello,
I am an amature at UNIX commands and functionality.
Please could you all assist me by replying to my below mentioned querry :
How can I upload a zip folder on a unix path from my windows folder?
Thanks guys
Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies
8. Shell Programming and Scripting
Hi all,
I have the following code to check the whether the folder is exist in my system.
if ; then echo 'folder exist'; else echo 'folder not exist'; mkdir /home/batch/testing ; fi
When I remove the "testing" folder from "/home/batch" directory, the code is working fine. But when I... (2 Replies)
Discussion started by: suigion
2 Replies
9. Shell Programming and Scripting
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
10. UNIX for Advanced & Expert Users
Hi all,
Can someone help me with creating user with special privilegies?
I need to create user who will have access ONLY to one folder (like /etc/log/) through ftp (read only access) and which will not have any other ways to log in like telnet, ssh etc.? (5 Replies)
Discussion started by: nypreH
5 Replies
MKDIR(3) 1 MKDIR(3)
mkdir - Makes directory
SYNOPSIS
bool mkdir (string $pathname, [int $mode = 0777], [bool $recursive = false], [resource $context])
DESCRIPTION
Attempts to create the directory specified by pathname.
PARAMETERS
o $pathname
- The directory path.
o $mode
- The mode is 0777 by default, which means the widest possible access. For more information on modes, read the details on the
chmod(3) page.
Note
$mode is ignored on Windows.
Note that you probably want to specify the mode as an octal number, which means it should have a leading zero. The mode is also
modified by the current umask, which you can change using umask(3).
o $recursive
- Allows the creation of nested directories specified in the $pathname.
o $context
-
Note
Context support was added with PHP 5.0.0. For a description of contexts, refer to "Streams".
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
mkdir(3) example
<?php
mkdir("/path/to/my/dir", 0700);
?>
Example #2
mkdir(3) using the $recursive parameter
<?php
// Desired folder structure
$structure = './depth1/depth2/depth3/';
// To create the nested structure, the $recursive parameter
// to mkdir() must be specified.
if (!mkdir($structure, 0777, true)) {
die('Failed to create folders...');
}
// ...
?>
ERRORS
/EXCEPTIONS
Emits an E_WARNING level error if the directory already exists.
Emits an E_WARNING level error if the relevant permissions prevent creating the directory.
NOTES
Note
When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script
that is being executed.
SEE ALSO
is_dir(3), rmdir(3).
PHP Documentation Group MKDIR(3)