I am executing a command in a perl script using system($command) to get a file from a server. The command is "smbclient [various options and login info] 'get <remote file> <local file>' I run this perl script 4 times, one after another, with an ampersand (to run in background) within a shell script. There seem to be problems. I get the file, then zip it up afterwards. The zip is stating that the file is not there. When I run this withOUT the ampersand (that is, I run the 4 perl scripts in succession versus concurrently, I do not get this problem). Is there an issue with concurrent calls using the samba client? Simon Chao Software Engineer Fidelity Investments (617) 563-3612 simon.chao@fmr.com
On Wed, Jun 01, 2005 at 02:13:18PM -0400, Chao, Simon wrote:> I am executing a command in a perl script using system($command) to get > a file from a server. The command is "smbclient [various options and > login info] 'get <remote file> <local file>' > > I run this perl script 4 times, one after another, with an ampersand (to > run in background) within a shell script. There seem to be problems. I > get the file, then zip it up afterwards. The zip is stating that the > file is not there. When I run this withOUT the ampersand (that is, I run > the 4 perl scripts in succession versus concurrently, I do not get this > problem). Is there an issue with concurrent calls using the samba > client?Running concurrent separate processes via system() shouldn't cause problems. There is no known issue here. Jeremy.
Reasonably Related Threads
- SWAT authentication question...
- Ampersand Heartburn
- Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').
- two bugs in rsync 3.0.6 - ampersands in filenames, double quoting required
- Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').