Search Results

Search: Posts Made By: rajashekar.y
1,687
Posted By rajashekar.y
shell script - unexpected result
I hv a file --am executing a script which is giving me unexpected results


COntents of file:

f1

CMT_AP1_CONT:/opt/sybase/syboc125:150:ASE12_5::Y:UX:...
1,424
Posted By rajashekar.y
actually i want to execute script $var in a...
actually i want to execute script $var in a remote host.
so var has stores the everythin in between 'single quotes' (end of single quote is seen at -echo $a')

SERVER=$1
#ssh "$SERVER" \...
1,424
Posted By rajashekar.y
Error in remote script
cat raj
var='Dir=cd /opt/sybase/dba;
pwd;
echo $Dir;
cd $Dir;
pwd;
a=`ls -lrt|awk \'{print $9}\'`;
echo $a'
ssh $SERVER $var >>test.out

---
sh raj test_host
error:
raj: syntax error at...
24,582
Posted By rajashekar.y
Ohh... got it..thanks for ur help vidyadhar85 and...
Ohh... got it..thanks for ur help vidyadhar85 and otheus.
24,582
Posted By rajashekar.y
Anyways ...Thank you for quick reply i think...
Anyways ...Thank you for quick reply i think sybase doesnt accept this esc sequence.

1> select "\"FREE SPACE:\""
2> go
Msg 102, Level 15, State 1:
Server 'RER_QA_125', Line 1:
Incorrect syntax...
24,582
Posted By rajashekar.y
Actually select "anything" prints anything ...
Actually

select "anything" prints anything

1> select "FREE SPACE: ,sum(curunreservedpgs(dbid,lstart,unreservedpgs)*(@@maxpagesize/(1024*1024))),Total Space:...
24,582
Posted By rajashekar.y
syntax error at line 28: `(' unexpected
hi can anyone pls look into this....shell script...

Pls find the error below:

> sh -n tmp
tmp: syntax error at line 28: `(' unexpected


isql -Usa -S$1 -P`grep $1 dbpassword|cut -d ":" -f3`...
33,889
Posted By rajashekar.y
900th line means i am storing a value in a...
900th line means i am storing a value in a variable in x.

i want to execute

sed -n '$x,$p' fname ==========> iam getting syntax error
33,889
Posted By rajashekar.y
display lines after a particular line number
I have a file that has 1k lines and i want to print all the lines after 900th line.

an 2)I want to move files f1 ,f2,f3,f4 to p1,p2,p3,p4

Please give me the commands.

Thanx in adv.
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 02:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy