Originally Posted by lykwydchykyn
smbclient //server/share -c ls > somefile.txt
Tried this, result was:
asked for windows share users passwd(accepted)
and just made a new file (somefile.txt) under my users / dir.
ls somefile.txt = somefile.txt
cat somefile.txt = Connection to 192.168.1.220 failed (Error NT_STATUS_HOST_UNREACHABLE)
Is this attempting to create a shortcut?
As it stands right now, I run a set of Batch.files on my Windows that > the output to a couple of .txt files in a List Folder I have mounted as a share. I have mounted the Windows share List folder on my linux box via /mnt/Winshares. My webpage has a couple Href// links to individual files in the List folder under apache/htdocs. I run a script to overwrite/update the apache/htdocs/List folder. I want to be able to just run the one script on the linux box, as opposed to 1)run batchfiles on windows 2)run script on linux.
One script would be nice lol.