This content has been marked as final.
Show 5 replies
-
1. Re: Custom Command/Extended Object export output to local drive
Bill RobinsonJun 5, 2012 9:52 AM (in response to richard mcleod)
1 of 1 people found this helpfulUse the //@$HOME path to get back to the user’s home dir. like:
Cat //@$HOME/foo.log
-
2. Custom Command/Extended Object export output to local drive
richard mcleod Jun 5, 2012 3:03 PM (in response to richard mcleod)So if I create a custom command to dump the scheduled tasks for a Windows server, I would implement the command like this?
type: remote tabular
Allow to be run against: Servers
command: schtasks /query >> //@$HOME/%s-task.log
-
3. Custom Command/Extended Object export output to local drive
Bill RobinsonJun 5, 2012 3:08 PM (in response to richard mcleod)
1 of 1 people found this helpfulmaybe like this:
local tabular
nexec %H "cmd /c \"schtasks /query\" >> //@${HOME}/%s-task.log
remote might work, the redirect needs to happen in a nsh context.
-
4. Custom Command/Extended Object export output to local drive
richard mcleod Jun 5, 2012 3:35 PM (in response to Bill Robinson)Getting an error stating "The network path was not found"
-
5. Custom Command/Extended Object export output to local drive
Bill RobinsonJun 12, 2012 3:15 PM (in response to richard mcleod)
try this as a local gui command
nsh -c "nexec %H cmd /c ""schtasks /query"" > //@${HOME}/%H-task.log