Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

automate samba to send file

I tried to run a bash shell script to login to samba and trying to send file. However, the script failed to execute once it entered into smb: /> . Is there any help can make thing run?
0
cat21
Asked:
cat21
1 Solution
 
ahoffmannCommented:
use a here document to feed smbclient, like:
  smbclient ....... <EoSMB
ls
quit
EoSMB
0
 
cat21Author Commented:
Thanks for your help as I am a newbie to linux stuff....
i managed to solve my problem.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now