03-01-2011
Need a script to fetch file from shared folder to unix box
Hi All,
We have a requirement of pulling a file from shared folder to our unix box(Our application Servers). The Shared Folder and the servers are in teh same domain for eg UK domain
For this purpose I got information like if in both source and destination ftp is enabled we can fetch the file directly from source to destination.
But in the shared folder that is created in some File server FTP can't be enabled for security purpose.
Our Application Servers are sftp enabled.
So we have manually placed psftp software in the shared folder.
When we use this software i giev a command
open Servername
IT will ask for username and password to enter into the application server
i give that then its connected to our server. I can view the files located in our Server in a remote way
We need your help in automating in connecting to our servers using this Software without asking password and also to push the file from the shared folder to unix box automatically.
Thanks in advance.
Hope this is Brainstorming
Regards,
Dhivya
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine.
how can i do that and the application currently upon which i am working is a JAVA based application.
I need your help.
regards
Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies
2. Shell Programming and Scripting
i have a unix script which is available in a box say box1
i want this script to be run in box box2
and put the output file in box2
what is the procedure to execute this script in box2
i will call the script in box1 using cybermation (1 Reply)
Discussion started by: trichyselva
1 Replies
3. Shell Programming and Scripting
hi,
I posted a thread before on that subject, but with a wrong focus...
here's my problem: I want to check if a file exists in a windows shared folder mounted using:
sudo mount -t cifs -o username=xxx,password=xxx,uid=xxx,gid=xxx //192.168.0.92/public /media/92_shared
I tried
if
... (2 Replies)
Discussion started by: jul
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am new for perl scripting, I need a script to copy a log file /test/test_yyyymmdd.dat from one unix box to another unix box location /check/check1/ at daily 2:00AM, please let me know how to do that......
Regards,
Ann (8 Replies)
Discussion started by: fabrine
8 Replies
5. Shell Programming and Scripting
Hello all !
I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies
6. Shell Programming and Scripting
Dear Experts,
I need to connect to a FTPS Server and move the files from FTPS folder "/SAP/Out" to Unix directory "/SAP/In". I need to run this script on Unix directory...Script should get the files from FTPS folder and place that in specified Unix Directory.
Thanks In Advance. (1 Reply)
Discussion started by: phani333
1 Replies
7. 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
8. UNIX and Linux Applications
Hi All,
One job in unix server will generate .csv files daily. I need to copy the latest of these .csv file from the unix server to the shared drive/folder in windows through unix script. My shared folder will look something like
W:\some folder(for example). Could any one of you please help... (3 Replies)
Discussion started by: jaya@123
3 Replies
9. UNIX for Dummies Questions & Answers
Hi Folks,
I am using winscp to graphiclly move the files from one unix box to another unix box , let say one unix box crediantials is (These are dummy crediantials)
xxx -->username
yyy -->password
and another unix box name is
RRR -->username
TTT -->password
NOW i need to... (4 Replies)
Discussion started by: punpun66
4 Replies
10. Shell Programming and Scripting
Is there any possible way transfering the file from unix to shared location using shell script.
i had created the batch script to fetch the files from unix to shared location and it works fine. Due to some problem in windows unable to transfer the file to shared location automatically. can anyone... (2 Replies)
Discussion started by: venkat918
2 Replies
LEARN ABOUT DEBIAN
email::folder
Email::Folder(3pm) User Contributed Perl Documentation Email::Folder(3pm)
NAME
Email::Folder - read all the messages from a folder as Email::Simple objects.
SYNOPSIS
use Email::Folder;
my $folder = Email::Folder->new("some_file");
print join "
", map { $_->header("Subject") } $folder->messages;
METHODS
new($folder, %options)
Takes the name of a folder, and a hash of options
If a 'reader' option is passed in then that is used as the class to read in messages with.
messages
Returns a list containing all of the messages in the folder. Can only be called once as it drains the iterator.
next_message
acts as an iterator. reads the next message from a folder. returns false at the end of the folder
bless_message($message)
Takes a raw RFC822 message and blesses it into a class.
By default this is an Email::Simple object but can easily be overriden in a subclass.
For example, this simple subclass just returns the raw rfc822 messages, and exposes the speed of the parser.
package Email::RawFolder;
use base 'Email::Folder';
sub bless_message { $_[1] };
1;
reader
read-only accessor to the underlying Email::Reader subclass instance
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project
<http://emailproject.perl.org/wiki/Email::Folder>
AUTHORS
Simon Wistow <simon@thegestalt.org>
Richard Clamp <richardc@unixbeard.net>
COPYING
Copyright 2006, Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty and will probably ruin your life, kill your friends, burn your house and bring about the doobie
brothers.
SEE ALSO
Email::LocalDelivery, Email::FolderType, Email::Simple
perl v5.10.0 2009-07-27 Email::Folder(3pm)