leandro.martins Posted February 27 Share Posted February 27 I'm trying to find a way to list the current value of a set of non-saved variables, e.g. Sys.P[i] I was reading about the backup command, but it only works with the saved variables. If I add those variable to the pp_custom_save.tpl, will the backup command return the variables added to the template? Or is there a different command, similar to the backup, that could list the current values of the variables present in pp_custom_save.tpl? Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted February 28 Author Share Posted February 28 Another question related with the backup command, is there a way to pipe the output to a file? I would like to create another file in the same format of the pp_save.cfg. Comparing this file with the .cfg, would make it possible to check if some change happened from the terminal. Quote Link to comment Share on other sites More sharing options...
steve.milici Posted February 28 Share Posted February 28 You could just use “P1..100” to report P-vars. From the Linux prompt (in a writable directory like “/var/ftp/gather”) you could use: gpascii <<< 'backup Motor[1].' >> backup.txt Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted March 14 Author Share Posted March 14 On 2/28/2023 at 9:14 PM, steve.milici said: You could just use “P1..100” to report P-vars. From the Linux prompt (in a writable directory like “/var/ftp/gather”) you could use: gpascii <<< 'backup Motor[1].' >> backup.txt Thank you Steve Is it possible use gpascii -i to execute the pp_save.tpl (or a custom template) to create the backup file? Quote Link to comment Share on other sites More sharing options...
leandro.martins Posted March 14 Author Share Posted March 14 I've already figure it out how to do it. I used the following command: gpascii -i"/var/ftp/usrflash/<Project-name>/Configuration/pp_save.tpl" >> /var/ftp/gather/backup.txt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.