Search Results

Search: Posts Made By: Irishboy24
1,114
Posted By Irishboy24
Cannot believe that i didn't think of this. It...
Cannot believe that i didn't think of this. It works like a charm. Thank you so much Aia.
1,114
Posted By Irishboy24
Shell Script has different ouput via cron vs when run Manually
Hello Lads,

I deployed a script on my mac to start and stop EC2 instances on AWS console. The script when started manually on the terminal does the expected stop and start. Problem is when i try...
1,032
Posted By Irishboy24
yeah i can read it but didn't have to go that far...
yeah i can read it but didn't have to go that far . i posted the solution in my previous comment. that resolved it. i give you credit though, your idea of copying triggered my action :-)
1,032
Posted By Irishboy24
HI Vgersh99, I think the purpose of...
HI Vgersh99,

I think the purpose of another_script not being executable or write protected is only so that users with the permissions cant mess with them.

Honestly, i don't see the logic in...
1,032
Posted By Irishboy24
Hi Vgersh99 to answer your question 1....
Hi Vgersh99

to answer your question

1. its in the same directory as the remote script.
2. although i'm a root user i cannot change the permission because the script is source controlled and...
1,032
Posted By Irishboy24
thanks for the reply but the script...
thanks for the reply but the script another_script.sh has permission 640 and i don't have privileges to change them. I've already tried giving the full path, since no one has execute permission it...
1,032
Posted By Irishboy24
Remotely Executing Shell Script - Problems
Hey Lads,

I have a shell script on a remote Server X that i need to execute from Server A. the script executes fine locally but remotely does not. It appears the script on the remote machine is...
5,178
Posted By Irishboy24
hey , thanks for the quick reply. I...
hey ,

thanks for the quick reply. I connected to the Database with the same credentials from the terminal and it works. for some reason it fails when i call it from within the shell script.
...
5,178
Posted By Irishboy24
HI mate, i tried the above solution, still...
HI mate,

i tried the above solution, still get the same error.


#!/usr/bin/bash
LD_LIBRARY_PATH="/usr/sybase/ASE-12_5/lib:$LD_LIBRARY_PATH"
SYBASE="/usr/sybase:$SYBASE"
...
5,178
Posted By Irishboy24
Sybase connection failing through shell script
Hi All,

I'm trying to connect to Sybase via shell script. i'm getting the following error.
Please let me know where i'm going wrong. Note that i'm not having this issue when connecting via...
1,144
Posted By Irishboy24
on solaris the following works: paste...
on solaris the following works:



paste -s -d"\d" filename | sed 's/d/|/g'
2,834
Posted By Irishboy24
oops that was typo on my part. i fixed it now
oops that was typo on my part. i fixed it now
2,834
Posted By Irishboy24
unary operator expected, if condition test error.
Hi All,

I'm assigning a numeric value to variable count=2, well its being assigned by code above the if condition.

I want to test for 2 conditions , when $count = 0 or $count <=2 and do...
2,525
Posted By Irishboy24
dunno mate..i'll find out ...
dunno mate..i'll find out ...
2,525
Posted By Irishboy24
I'm loving golf!!..i got it working with nawk,...
I'm loving golf!!..i got it working with nawk, although ed text editor seems to have been disabled. i'm not complaining because its resolved.

thanks all for your help and advice.

cheers
2,525
Posted By Irishboy24
excellent!. thanks mate, this worked like a...
excellent!. thanks mate, this worked like a charm!

---------- Post updated 10-03-12 at 12:56 PM ---------- Previous update was 10-02-12 at 10:54 PM ----------

sorry to bother again chubler but...
2,525
Posted By Irishboy24
thanks Balaji that works. thanks Corona, i...
thanks Balaji that works.

thanks Corona, i see what you are saying i should have been more specific with my sample file. it actually looks like this.



cat file ... how r u
whats up ......
2,525
Posted By Irishboy24
[SOLVED] sed -i not available in solaris 5.10
Hi All,

i'm writing a script where i have to grep for a pattern and the 3 lines after the pattern and comment them out.

Note that i have to do this for multiple files, i am able to grep the...
5,147
Posted By Irishboy24
sorry for the late reply. your suggestion worked...
sorry for the late reply. your suggestion worked . thanks for the help.
5,147
Posted By Irishboy24
scheduling a job using at command
Hi All,

I've been trying to schedule a job using the at command on Solaris 5.10 but i've been running into some issue. ( Not allowed to use cron :wall: )

I have a script that reads a logs...
4,387
Posted By Irishboy24
Another way to do it is to get the line numbers...
Another way to do it is to get the line numbers where the pattern occur and then print the content between the lines:


$ cat linepat
AAA
AAA
CCC
CCC
CCC
EEE
EEE
EEE
EEE
FFF
FFF
GGG...
1,620
Posted By Irishboy24
more easier way using bash. $ cat...
more easier way using bash.


$ cat formdate

#!/usr/bin/bash
var=26-JUL-2012
newvar=$(date --d=$var +'%Y%m%d')
echo $newvar




$ ./formdate
20120726
1,071
Posted By Irishboy24
using sed: $ cat testfil ...
using sed:


$ cat testfil
121941602P911000497^123.001^^^^^^^^^0^10^OTHER
121941602P911000497^123.002^^^^^^^^^1^10^OTHER
121941602P911000497^123.003^^^^^^^^^2^10^OTHER...
1,402
Posted By Irishboy24
thanks mirni for the reply. just one question,...
thanks mirni for the reply. just one question, could you explain the de-limiter used here [<>] . does that by default represent an xml tag ?
5,853
Posted By Irishboy24
may be this ? $ cat script.sh ...
may be this ?


$ cat script.sh
#!/bin/bash
sum=0
for i in $@
do
sum=`expr $sum + $i`
echo $sum
shift
done



output:


$ ./script.sh 4 5 6 7
Showing results 1 to 25 of 76

 

Featured Tech Videos

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