Question on execution


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Question on execution
# 1  
Old 01-28-2010
Question on execution

Hello All,

1) I have 2 questions, when i try to execute the below shell script through putty it does not showing me whole syntax rather its trimming of some part may be due to some buffer issues. Could you please tell me any work
around for this.

Code:
/product/apps/informatica/v7/pc/ExtProc/NewDAC/dacRecBuilder.sh /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_CashTrade_Records.out  /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_CashSec_TxnGen.txt  /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_CashSec_Trading.txt  /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_CashSec_SecDebt.txt > /product/apps/informatica/v7/pc/ScriptLogs/DAC_CashTrade_Records.log 2>&1

2) I want to debug a perl script in putty, like what we use to do in shell script through set -x command is there any option like that to check the output of each line while executing perl script through putty.

Appreciate your help, Thanks.
# 2  
Old 01-28-2010
Code:
/product/apps/informatica/v7 \
/pc/ExtProc/NewDAC/dacRecBuilder.sh /product/apps/informatica/v7 \
/pc/TgtFiles/NEW_DAC/DAC_CashTrade_Records.out  /product/apps/informatica/v7 \
/pc/TgtFiles/NEW_DAC/DAC_CashSec_TxnGen.txt  /product/apps/informatica/v7 \
/pc/TgtFiles/NEW_DAC/DAC_CashSec_Trading.txt  /product/apps/informatica/v7 \
/pc/TgtFiles/NEW_DAC/DAC_CashSec_SecDebt.txt > /product/apps/informatica/v7 \
/pc/ScriptLogs/DAC_CashTrade_Records.log 2>&1


If you want to debug a perl script add a -d:
Code:
#!/my/path/to/perl  -d [ other options go here ]

# 3  
Old 01-28-2010
Your description of 1) is not clear.

If you have such a long command, better put it into the script on the server and run the script instead.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Dumb question on script execution

Hi Folks - I have a dumb question. Why does this work: pushd "/apps/scripts" ./script.sh popd But this doesn't: ./apps/scripts/script.shIs it that obvious where I'm overlooking it? (7 Replies)
Discussion started by: SIMMS7400
7 Replies

2. Shell Programming and Scripting

Basic question on shell script execution

I have two shell scripts in the different directories listed below, /root/dev/dir1/test.sh /root/dev/dir2/master.sh I am executing the master.sh script from the test.sh like below and getting 'Permission denied' error. #! /bin/sh #test.sh path='/root/dev' $path/dir2/master.sh But it... (2 Replies)
Discussion started by: vel4ever
2 Replies

3. UNIX for Dummies Questions & Answers

execution problem

Hi i am using expect module and trying to login using following code. ssh 127.0.0.1 expect "word:" send "$password \n" kindly let me know the login script using expect module (1 Reply)
Discussion started by: esumiba
1 Replies

4. UNIX for Advanced & Expert Users

Help with can't get execution attributes

Hi Gurus, I am trying to create a FS using SVM but system is throwing the following error. newfs /dev/md/rdsk/d1002 newfs: construct a new file system /dev/md/rdsk/d1002: (y/n)? y /usr/sbin/clri: can't get execution attributes (1 Reply)
Discussion started by: rama krishna
1 Replies

5. Shell Programming and Scripting

Expect Issue Serial Forground Execution vs Concurrent Background Execution

I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test. The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies

6. Shell Programming and Scripting

crontab execution

is it possible to soecify time overnight in 5 days for example: 0 18-7 * * 1-5 /mycode is this okay to use 18-7 because im not getting the results correctly? (4 Replies)
Discussion started by: vadharah
4 Replies

7. Shell Programming and Scripting

execution without ./

I want to execute a shell script without ./ symbol. For example: ./my_script ===== my_script (both of them can execute my script) both of them are the same as result. (7 Replies)
Discussion started by: mehmetned
7 Replies

8. UNIX for Dummies Questions & Answers

execution without using (./)

I want to execute a shell script without ./ symbol. For example: ./my_script ===== my_script (both of them can execute my script) both of them are the same as result. (2 Replies)
Discussion started by: mehmetned
2 Replies

9. UNIX for Advanced & Expert Users

exec 3 execution

Dear All, while opening new subscript file using "exec 3> $3" say for e.g. for some condition output is to be redirected to third argument passed. I am getting error exec not found . I think new subscript redirection file not getting opened. Plz help me out. Snehal \\ (0 Replies)
Discussion started by: snehal
0 Replies

10. UNIX for Dummies Questions & Answers

Question on Set User ID on Execution

I want group to run one of my unix script as me . I when the script is run it should have my permission's not the group . I tried this : 1.Have a file called y.ksh cat y.ksh echo $LOGNAME >ak_test 2.Output file has this permission -rwx------ ak_test 3.Then I chnaged... (7 Replies)
Discussion started by: akrathi
7 Replies
Login or Register to Ask a Question