pipeline processing using cat
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
original:
./A_process.py _ < input.dict > output.dict.tmp
./B_process.py _ < output.dict.tmp > output.dict
rm output.dict.tmp
I am trying to make it into a pipeline, so
cat input.dict | A_process.py _ | B_process.py _ > output.dict
however it shows "A_process.py command not found"...
I guess something wrong with the environment, but not sure what to do. I'm just a novice, so every advice and tutorial links are welcome.
bash cat
add a comment |Â
up vote
1
down vote
favorite
original:
./A_process.py _ < input.dict > output.dict.tmp
./B_process.py _ < output.dict.tmp > output.dict
rm output.dict.tmp
I am trying to make it into a pipeline, so
cat input.dict | A_process.py _ | B_process.py _ > output.dict
however it shows "A_process.py command not found"...
I guess something wrong with the environment, but not sure what to do. I'm just a novice, so every advice and tutorial links are welcome.
bash cat
./A_process.py
will look in the current directory forA_process.py
whereasA_process.py
will only search yourPATH
â steeldriver
Mar 6 at 15:27
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
original:
./A_process.py _ < input.dict > output.dict.tmp
./B_process.py _ < output.dict.tmp > output.dict
rm output.dict.tmp
I am trying to make it into a pipeline, so
cat input.dict | A_process.py _ | B_process.py _ > output.dict
however it shows "A_process.py command not found"...
I guess something wrong with the environment, but not sure what to do. I'm just a novice, so every advice and tutorial links are welcome.
bash cat
original:
./A_process.py _ < input.dict > output.dict.tmp
./B_process.py _ < output.dict.tmp > output.dict
rm output.dict.tmp
I am trying to make it into a pipeline, so
cat input.dict | A_process.py _ | B_process.py _ > output.dict
however it shows "A_process.py command not found"...
I guess something wrong with the environment, but not sure what to do. I'm just a novice, so every advice and tutorial links are welcome.
bash cat
asked Mar 6 at 15:24
Luca
132
132
./A_process.py
will look in the current directory forA_process.py
whereasA_process.py
will only search yourPATH
â steeldriver
Mar 6 at 15:27
add a comment |Â
./A_process.py
will look in the current directory forA_process.py
whereasA_process.py
will only search yourPATH
â steeldriver
Mar 6 at 15:27
./A_process.py
will look in the current directory for A_process.py
whereas A_process.py
will only search your PATH
â steeldriver
Mar 6 at 15:27
./A_process.py
will look in the current directory for A_process.py
whereas A_process.py
will only search your PATH
â steeldriver
Mar 6 at 15:27
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
As @steeldriver wrote in his comment, the problem you are facing is that the script you are executing is not in your PATH
The simple solution will be to add the prefix ./
to the script-name, assuming that you are running the command in the same folder the script is located:
cat input.dict | ./A_process.py _ | ./B_process.py _ > output.dict
Other options might be:
- Add the path of the script location into the
PATH
variable. - Instead of
./script_name
use full-path of the script/full/path/to/script/directory/A_process.py
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
As @steeldriver wrote in his comment, the problem you are facing is that the script you are executing is not in your PATH
The simple solution will be to add the prefix ./
to the script-name, assuming that you are running the command in the same folder the script is located:
cat input.dict | ./A_process.py _ | ./B_process.py _ > output.dict
Other options might be:
- Add the path of the script location into the
PATH
variable. - Instead of
./script_name
use full-path of the script/full/path/to/script/directory/A_process.py
add a comment |Â
up vote
1
down vote
accepted
As @steeldriver wrote in his comment, the problem you are facing is that the script you are executing is not in your PATH
The simple solution will be to add the prefix ./
to the script-name, assuming that you are running the command in the same folder the script is located:
cat input.dict | ./A_process.py _ | ./B_process.py _ > output.dict
Other options might be:
- Add the path of the script location into the
PATH
variable. - Instead of
./script_name
use full-path of the script/full/path/to/script/directory/A_process.py
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
As @steeldriver wrote in his comment, the problem you are facing is that the script you are executing is not in your PATH
The simple solution will be to add the prefix ./
to the script-name, assuming that you are running the command in the same folder the script is located:
cat input.dict | ./A_process.py _ | ./B_process.py _ > output.dict
Other options might be:
- Add the path of the script location into the
PATH
variable. - Instead of
./script_name
use full-path of the script/full/path/to/script/directory/A_process.py
As @steeldriver wrote in his comment, the problem you are facing is that the script you are executing is not in your PATH
The simple solution will be to add the prefix ./
to the script-name, assuming that you are running the command in the same folder the script is located:
cat input.dict | ./A_process.py _ | ./B_process.py _ > output.dict
Other options might be:
- Add the path of the script location into the
PATH
variable. - Instead of
./script_name
use full-path of the script/full/path/to/script/directory/A_process.py
answered Mar 6 at 15:39
Yaron
3,19421027
3,19421027
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428534%2fpipeline-processing-using-cat%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
./A_process.py
will look in the current directory forA_process.py
whereasA_process.py
will only search yourPATH
â steeldriver
Mar 6 at 15:27