- Forum
- T24 Technical Discussions
- T24 Upgrade
- Regarding using "cd" command in the routine using EXECUTE command
×
Discuss about Upgrade, What are the pre-requesties, Scoping, Actual Upgrade, Upgrade Testing, Technical Testing, Functional Testing, Local code conversion, Core upgrade, Local upgrade, etc…
Regarding using "cd" command in the routine using EXECUTE command
- ninetailfox
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
5 years 1 month ago #22409
by ninetailfox
Regarding using "cd" command in the routine using EXECUTE command was created by ninetailfox
Hi folks!
I need to navigate to other directory in admist of a program, so I used EXECUTE command followed by the path in quotes. But the directory is not changed and remains in the default path bnk.run. Please help me to sort this situation. Forgive me if I did something silly. I am fresher to T24. Thanks in advance.
By the By I am using it in a unix environment.
I need to navigate to other directory in admist of a program, so I used EXECUTE command followed by the path in quotes. But the directory is not changed and remains in the default path bnk.run. Please help me to sort this situation. Forgive me if I did something silly. I am fresher to T24. Thanks in advance.
By the By I am using it in a unix environment.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
Less
More
- Posts: 1182
- Thank you received: 157
5 years 1 month ago #22411
by VK
Cheers
VK
Replied by VK on topic Regarding using "cd" command in the routine using EXECUTE command
Hi
EXECUTE is performed in the separate context; after it finishes all comes back to "normal".
Generally it's a VERY bad idea to change the current folder since there can be settings that use a relative path. If you need to execute non-T24 program in another folder, put "cd" and program run command to a shell script. Then you can EXECUTE that script.
EXECUTE is performed in the separate context; after it finishes all comes back to "normal".
Generally it's a VERY bad idea to change the current folder since there can be settings that use a relative path. If you need to execute non-T24 program in another folder, put "cd" and program run command to a shell script. Then you can EXECUTE that script.
Cheers
VK
The following user(s) said Thank You: ninetailfox
Please Log in or Create an account to join the conversation.
- ninetailfox
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
5 years 1 month ago #22415
by ninetailfox
Replied by ninetailfox on topic Regarding using "cd" command in the routine using EXECUTE command
Hi VK,
I think I need to explain my issue in a detailed manner. I need to untar a file in a specific folder through a routine. For that I used Execute command inside the program stating cd (The required directory). This part of the code doesn't work. Sorry if I mistook the answer given by you. Please help me to sort out this situation.
I think I need to explain my issue in a detailed manner. I need to untar a file in a specific folder through a routine. For that I used Execute command inside the program stating cd (The required directory). This part of the code doesn't work. Sorry if I mistook the answer given by you. Please help me to sort out this situation.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
Less
More
- Posts: 1182
- Thank you received: 157
5 years 1 month ago #22417
by VK
Cheers
VK
Replied by VK on topic Regarding using "cd" command in the routine using EXECUTE command
Hi
as I wrote earlier, I'd suggest to EXECUTE not the tar executable but a shell script where you change the current directory and 'untar' the archive.
as I wrote earlier, I'd suggest to EXECUTE not the tar executable but a shell script where you change the current directory and 'untar' the archive.
Cheers
VK
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Upgrade
- Regarding using "cd" command in the routine using EXECUTE command
Time to create page: 0.078 seconds