I have an issue with the function 'import', it canno't take variables as arguments :
Code: Select all
[ansible@que-1-hap] > foreach lib in=[/file find name~".lib.rsc"] do={ put [/file get $lib name] }
convertCase.lib.rsc
diffDate.lib.rsc
getUserContact.lib.rsc
netwatchAction.lib.rsc
sendSms.lib.rsc
sendTelegram.lib.rsc
[ansible@que-1-hap] > foreach lib in=[/file find name~".lib.rsc"] do={ put [/file get $lib name]; import $lib }
convertCase.lib.rsc
cannot open import file, file does not exist
[ansible@que-1-hap] > import
convertCase.lib.rsc diffDate.lib.rsc getUserContact.lib.rsc last-export.rsc netwatchAction.lib.rsc sendSms.lib.rsc sendTelegram.lib.rsc from-line verbose file-name
[ansible@que-1-hap] >
It must be a new feature to develop =)
Have a nice day !