i want to open a new terminal and execute a script immediately to it (to set a title in the new tab) and i cannot configure this. I try:
gnome-terminal --tab-with-profile=$varname -x ./test.sh -c "script -a -c 'ping $varname' $PATH_REPORT/$varname.log"
Any help how can i execute the test.sh script which contains:
PROMPT_COMMAND='echo -ne "\033]0;${varname}\007"'
with the others in command i wrote?
PROMPT_COMMAND
is only evaluated when a prompt is displayed. Since this is a non-interactive session, just do theecho -ne ....
directly.