samba log


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting samba log
# 1  
Old 06-27-2011
samba log

Hi guys,

iam using samba utility to grab/delete files from shared to unix.
Code:
/util/samba/bin/smbclient URL/user 'pasword' -U 'AppID' -D Shareddrivepath -c "lcd UnixPath;mget *.csv"

this would extract file from shared drive and would display what file it is extracting while exceuting.

but when i use
Code:
/util/samba/bin/smbclient URL/user 'pasword' -U 'AppID' -D Shareddrivepath -c "rm *.csv"

it is deleting the files in shared drive but is not displaying the filename while executing.

can anyone suggest me how to log the deleted files.

Thanks,

Last edited by Franklin52; 06-28-2011 at 03:43 AM.. Reason: Please use code tags for code and data samples, thank you
# 2  
Old 06-28-2011
Write a script to list your remove targets, pipe it to while read it, do, list it, remove it and relist it to ensure it got deleted, done. Not surprising, rm is silent on unix by default. You could run cygwin over on the windows side to do it in a shell script (but fork over there is slow!)

Last edited by DGPickett; 06-28-2011 at 04:30 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Samba Help

All; I've done this before, but sure I'm typing in the wrong search terms, so not finding the help I need. What I have to do: Set up Samba, smb.conf, smbclient, fstab and all other settings so I see both the Windows and Linux servers and their shares in the network, via Samba. It's... (19 Replies)
Discussion started by: TBotNik
19 Replies

2. UNIX for Dummies Questions & Answers

Help with Samba please!

I am having a nightmare getting a new Solaris server to join a domain in order to access some samba shares. I am a newbie to Unix so am learning as I go. Every time I try the net ads join -U administrator command, I get: # net ads join -U administrator Enter administrator's password: ... (9 Replies)
Discussion started by: mgreen81
9 Replies

3. AIX

Samba

Hello, i install samba on AIX 5.3 and when i try to connect to the shared folder from windows it give me a prompt authentication window to access the server, anyway to allow any user to access that shared folder? i need to access it without the prompt authentication window. Thanks (2 Replies)
Discussion started by: moudmm
2 Replies

4. UNIX for Dummies Questions & Answers

Samba and log.nmbd

Hello All, I have an old SGI running IRIX 6.5. Since it was very outdated I moved all users and data to a new Oracle M4000 and stopped Samba from running on the SGI. I have run into a strange problem though regarding log.nmbd file. I noticed that the boot diskspace was at 100% capacity because... (0 Replies)
Discussion started by: jbirkes
0 Replies

5. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

6. UNIX for Dummies Questions & Answers

Samba

after creating username/passwd, vi /usr/lib/smb.conf file comment = dropoff location path = /tmp/droloc browsable = No available = yes public = no writable = yes printable = no create mode = 777 valid users = tjmann,palexander,bmartin,.... instead of using... (2 Replies)
Discussion started by: tjmannonline
2 Replies

7. UNIX for Dummies Questions & Answers

samba

hi, i have 2 raids connected via 2 servers to a third server with a third raid. the first 2 export via nfs to the third so that the third has all the data viewable on it. previously i was able to then use samba to export to our macs. i don't recall anything changing, but now i can't view... (0 Replies)
Discussion started by: user23
0 Replies

8. UNIX for Dummies Questions & Answers

Samba help

Hey. I have a question about adding users and maping theirs dirictorys. Main Folder | -User1 Folder -User2 Folder -User3 Folder ...... How can I add this users to have folders in the Main Folder ? any simple script? And I... (0 Replies)
Discussion started by: net555
0 Replies

9. IP Networking

Samba

:confused: I've been trying to get Samba working on RH7.2 but been failing. Could anyone give me some tips on what I should check to see what I'm doing wrong. I've double check everything. Maybe I could of forgot something. PLEASE HELP. (2 Replies)
Discussion started by: aojmoj
2 Replies

10. UNIX for Advanced & Expert Users

samba

hello friends i installed samba in solaris x86 pc , and don't have the binari smbadduser i use linux and i'm studing solaris how can i add user in samba of solaris version? and i need smbadduser ? thanks friends (2 Replies)
Discussion started by: themask
2 Replies
Login or Register to Ask a Question