ContentDistribution.StageAndExecute
| Method | |
|---|---|
| Module | ContentDistribution | 
| Library | Core | 
| Action | Similar to  | 
| Parameters |       | 
| Return values |     
   WarningMany Windows programs set a zero exit code even on failure.   | 
| Example |  ContentDistribution.Stage(LszUrl:"http://fileserver.domain.local/Content/Tachyon_1d82db90-39ba-47c3-98b1-4483d20ac8f7_1.LsZ",
                           DirectoryUrl:"http://fileserver.domain.local/Content/Tachyon_1d82db90-39ba-47c3-98b1-4483d20ac8f7",
                           CommandLine:"msiexec /i installer.msi /qn /l*v c:\hiddenshare\logs\program12\installation.log"); | 
| Platforms | 
 | 
| Notes | This action is typically used to download and then install software. The downloaded content is stored in a temporary location which is deleted on completion. If you just want to execute a script or an install command for pre-existing content then use Scripting.Run or NativeServices.RunCommand methods instead. Just before the CommandLine is executed, the working directory is (temporarily) set to where the content was downloaded to (which is a temporary directory). So, for example, if the downloaded content includes an installer file named " Warning: Space for temporary filesBecause  INFO - Downloading "<remote_URL>" to file "/tmp/tachyon<aaaaaa>/<local_file>" ... ERROR - Error while trying to write to "/tmp/tachyon<aaaaaa>/<local_file>": (28) No space left on device The selection order for temporary file and directory locations on non-Windows platforms is as follows: 
 The Tachyon agent selects the first of these that is an existing directory. Hence, if the error occurs (typically with a  First, after installation of the Tachyon Agent, edit  Environment="TMPDIR=/var/tmp" (or specify some other suitable directory for large temporary files). Then run these commands to pick up the change and restart the Tachyon agent: systemctl daemon-reload systemctl restart tachyon.agent.service |