Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Old 04-03-2017, 01:33 PM
mtjaz mtjaz is offline
Registered User
Join Date: Apr 2017
Posts: 1
SFXCL Issue Command After Login

Currently I am creating a configuration backup file of a Linux device, and writing the file to a directory on that device. I copy the file off with one SFXCL script and then I run the following SFXCL script in a batch file to delete the file from the Linux device.

"sfxcl.exe" /Delete "scp://"usernameassword@LinuxDevice"//tmp/LinuxDevice.config"

I now need to run the script with a different account and need to elevate the rights for that account after logging into the device. I was hoping that I could use the /Command "sudo -i" in the existing script syntax. Does anyone know if this can be done?

"sfxcl.exe" /Command "sudo -i" /Delete "scp://"usernameassword@LinuxDevice"//tmp/LinuxDevice.config"

Can something like this be done and if so, what would the syntax string be?
Reply With Quote
Old 04-03-2017, 01:44 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,593
Hi mtjaz,

This is not presently possible with SecureFX/SFXCL.

I have added this thread to a feature request in our product enhancement database to add ability to use sudo with SCP. Should a future release of SecureFX include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include "Feature Request - Forum Thread #12654" in the subject line or use this form from the support page of our website.

VanDyke Software
Technical Support
(505) 332-5730

Last edited by bgagnon; 04-03-2017 at 01:44 PM. Reason: Added SFXCL for clarification
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 02:24 AM.