well after a lot of searching i have got a bit closer
first im going to let the post script copy all avis regardles of names to the holding folder and only enable it for certain tasks (no sense over complicating things)
now the bit im still having issue with the automaticly moving all files from the holding folder to a folder on my net book, i have so far found a sort of method
Code:
cd /home/mrgreaper/holding/
smbclient //icklepc/inbound mypassword
put filename
quit
the problems are multiple, for one i need to know the file name of each file i cant use * (wildcards)
two its only copying not moving
problem one i thought i gould fix with masks and the mput but mask * then mput did not work seems wildcards are nto aloud in masks grrrrrr
ok a possible solution im about to try (im posting before i try as it takes time to get replys and i want to get this fixed so i can sleep tonight and not wake up in the middle of the night with a bright idea that i try to make work for an hour then go back to bed in failure! (i dont just post and wait for a response)
my idea is an adaption of my post processing script and i can already see potential problems but it would serve to move the files
Code:
#!/bin/bash
cd /home/mrgreaper/holding/
for file in *.avi
do
smbclient //icklepc/inbound mypassword
put "$file"
quit
rm "$file"
done
potential problems include,
1)it attempting to copy a file while the file is being put in to the holding file so it wouldnt copy all of the file
2) this is a biggie, the share not being available so it doesnt copy the file but it still deletes it.
so how do i make it check for the share being in existence before it even trys to copy?
*note*
the rsync command(application) if i understand the page i read will only copy not move have i got that wrong?