How do I get Perl to run an alias I've defined in BASH? -


I have a script which opens different files at the same time.

My problem here is that when I run the system () I have defined the nickname which points to / home / user1 / software / nc, Pearl tells me that it does not execute the alias Because there is no file / directory at the current location. I know that the nickname works because when I open it directly in the shell, it opens up right.

Strange, I can do the system ("Firefox") right in my script but not the alias. How do I use this nickname without any breaks?

If you are smart, then you have made it defined for your nickname interactive shell, so You must launch bash and specify that you want to open an interactive shell using -i .

  SYSTEM ('bish', '-i', '-c', 'shell command');    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -