When transfering a perl script from a Windows machine to a Unix machine, the line endings are preserved. I found this http://stackoverflow.com/a/5958926 for fixing the line endings when archiving jars or wars, but I can't seem to apply a similar method to the put or get ssh commands.
From a windows machine with git config autocrlf==auto
// Paste the snippet of script or logs
put from: files("$commandDir/brExecute.pl"), into: 'bin/'
then on the remote machine:
~$ brExecute.pl MyJob MyFile.xlsx
-bash: /home/user/bin/brExecute.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
When transfering a perl script from a Windows machine to a Unix machine, the line endings are preserved. I found this http://stackoverflow.com/a/5958926 for fixing the line endings when archiving jars or wars, but I can't seem to apply a similar method to the put or get ssh commands.
From a windows machine with git config autocrlf==auto
then on the remote machine: