If you use
ssh [email protected] "~/tools/run_pvt.pl $BUILD_NUMBER"
instead of
ssh [email protected] '~/tools/run_pvt.pl $BUILD_NUMBER'
your shell will interpolate the $BUILD_NUMBER
before sending the command string to the remote host.
More Related Contents:
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Avoid gnome-terminal close after script execution?
- sh: 1: Syntax error: "(" unexpected error
- Iterate over a list of files with spaces
- Use Expect in a Bash script to provide a password to an SSH command
- How to declare 2D array in bash
- Defining a variable with or without export
- What does $@ mean in a shell script?
- Better way to rename files based on multiple patterns
- Syntax error in shell script with process substitution
- Raise error in a Bash script
- Linux: copy and create destination dir if it does not exist
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- How to run a shell script on a Unix console or Mac terminal?
- How to preserve line breaks when storing command output to a variable?
- How to use sed to remove the last n lines of a file
- Use sudo without password INSIDE a script
- How to restrict SSH users to a predefined set of commands after login?
- How do I run multiple background commands in bash in a single line?
- How to execute a remote command over ssh with arguments?
- How to get file creation date/time in Bash/Debian?
- Execute command after every command in bash
- How do I change bash history completion to complete what’s already on the line?
- Multithreading in Bash [duplicate]
- Running shell script in parallel
- Difference between shell and environment variables
- SUID not working with shell script
- What’s the point of eval/bash -c as opposed to just evaluating a variable?
- Counter increment in Bash loop not working
- How to pass parameters to a Bash script?