cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Axwell84
Level 3

Linux link to a file wit relative path

Hi,
I want to create a link to a file with the option "existing file", and it's impossible to create this link, could you explain me the syntax with an example for a relative path?

Thanks
Labels (1)
0 Kudos

(6) Replies
RamyaVenkatesh
Level 7

You can provide the relative path using IA variables, like '$USER_HOME$$\$file.txt' in the existing file field and provide the destination path with name in the corresponding fields.
0 Kudos
Axwell84
Level 3

Thanks a lot:)
But if the file doesn't exist, IA doesn't create the link, that's a new problem!
0 Kudos
RamyaVenkatesh
Level 7

Link is a shortcut to some file. So if the file doesn't exist, a link cannot be created. If you want to create the link after checking for file existence, add a 'Check if file exists' rule to the action.

Thanks.
0 Kudos
Axwell84
Level 3

Yes of course but on Unix you can use the commande 'ln' to create a link to a file even if the doesn't exist. Is it possible on IA?
0 Kudos
RamyaVenkatesh
Level 7

For that case, you can try the Execute Command action.

Let me know if it works.
0 Kudos
Axwell84
Level 3

Yes it works, you need to use the Execute Script Command and fill with your command without forgetting to use before the cd command to set the good directory! Thanks
0 Kudos