Variables in Linux scripts

Get help for specific problems
Posts: 2
Joined: 23 Feb 2017

barmadov

Thank you for this software, it's awesome!
From manual:
You can add a flexibility to a ffs_batch configuration file by creating new temporary environment variables in a bat or cmd file that are evaluated by FreeFileSync at runtime
But is it possible in Ubuntu Linux? I use .sh script to execute RealTimeSync. I try to generate the target folder path dynamically, so it will contain computer's hostname. I can output the hostname by commands:
export HOSTNAME
sh -c 'echo $HOSTNAME'
Is it possible to use $HOSTNAME in the destination folder path for FreeFileSync? There is the %ComputerName% environment variable on Windows, but not on Linux as I can understand.

If it can be done, give an example, please!
Posts: 2
Joined: 23 Feb 2017

barmadov

Any help or information, please... We need it very much