- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question with Samba
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 10:45 AM
04-21-2004 10:45 AM
Question with Samba
One of my programmers wants to be able to copy files from my UNIX server over to one of our Windows 2000 servers. She would like this to be automated to keep anyone from forgetting to move them manually. My UNIX server has HP-UX 11.i so I installed Samba and got it configured. That part seems to work fine.
The problem that I am having is that we want to use task scheduler on the server to copy the files. We logged into the server with an administrative name and password and setup the task scheduler to run the job. Everything works just great until we log out from the server.
When we logout of the server the scheduled task runs but isnâ t able to connect to the UNIX server. Is there a way to perform this task without having to be logged into the UNIX server? We would really like to use Samba but if we cant get this to work we will have to find an alternate way to move the files.
Thanks for the help.
Je
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 10:55 AM
04-21-2004 10:55 AM
Re: Question with Samba
If you want to transfer files from NT to UNIX Server, you can map the file system and do your work. I dont see a way to have the drive permanent...but you connnect using Citrix connection and Do a "Disconnect" option instead of "Log Off" once you mapped the drive... that leave the drive for the user and run your job
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 11:25 AM
04-21-2004 11:25 AM
Re: Question with Samba
I created a cron job to copy the required files from their current location on the UNIX server to a new folder.
I created a batch job to copy the required files from their location on the UNIX server to a new location on the Windows 2K server. With task schedular I set up the batch job to be run every morning.
The problem is if someone else come into the server room and logs into this Windows 2K server as a different user/Administrator and leave it that way then when the scheduled task runs it isn't able to touch the UNIX server to copy the files.
The question remains, is there a way for me to copy the files from the UNIX server to my Windows 2K server without worrying about which user is loged into the Windows 2K server. Can I use Samba or do I have to figure out another way to get the files copied?
Hope that clears up the confusion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 11:29 AM
04-21-2004 11:29 AM
Re: Question with Samba
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:04 PM
04-21-2004 09:04 PM
Re: Question with Samba
I think there could be an easy solution to your problem. Instead of relying on having a drive mapped when your scheduled task runs, why don't you use "net use" to map it as part of the scheduled task.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 02:41 AM
04-22-2004 02:41 AM
Re: Question with Samba
At my previous job, I set up a Red Hat Linux web server with Samba and copied the web site files to an NT server to be sure they got backed up every night. The cron job ran a script that used smbmount to mount the location and then smbunmount to unmount it when the cp was complete. (I think those were the correct commands... can't find them on my current HP systems, but they only have the CIFS Server software loaded so I assume HP bundles the client side portions separately.)
It didn't matter if anyone was left logged on the Windows server with a different account or not. The only bad thing about it is that it leaves a plain text password in a script, which isn't generally a good idea.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 04:21 AM
04-23-2004 04:21 AM
Re: Question with Samba
1) copy by cron to a samba share on UNIX
2) copy by scheduler to new location on W2k
=> not working as expected
Another way:
1) copy by cron to temporary samba share with map bad user to guest and guest allowed on UNIX
2) copy from temporary storage (net use inside batch file) to new location on Win2k
3) if copy OK remove files from temporary storage and disconnect (net use /delete inside batch file)
This should be user independent without any influence of currently logged users.
If you like to check if the UNIX copy is finished use a file, if this file exists Win2k can start to copy!
HTH,
Stefan