Search Results

Search: Posts Made By: c19h28O2
1,450
Posted By c19h28O2
Thanks Don, that's exactly what I needed. ...
Thanks Don, that's exactly what I needed.

The final version of this will use a variable which all contain backslashes. Also I backslashed the dollar as that is what I am searching for :)
...
1,450
Posted By c19h28O2
sed delimiter error
Hi,

I'm having a bit of trouble replacing sed's delimiter from a slash to a pipe.

This works...



sed '/INSERT INTO/s/\${TD_LOAD_DB}/NUC_PL_LOAD/g' sql_file.sql



But this doesn't
...
906
Posted By c19h28O2
A better solution to eval?
Hi,

I am trying to replace some variables in an sql file, but I seem to be having some trouble during the loop.



sql_file.sql

SELECT *
FROM DATABASE.TABLE
WHERE EVENT_DT <...
19,649
Posted By c19h28O2
Hey era, I was using wait but without the...
Hey era,

I was using wait but without the pid, I just literally had "wait" directly underneath.

but now I've changed it to waid for the pid and its now returning the failure code! :)

Out of...
19,649
Posted By c19h28O2
Return code of background process
Hi,

I have a process that I run in the background that looks like this



${BASEDIR}/ksh/sqler.ksh ${compnames003[$i]} &



and I would like to get the return code of the sqler.ksh...
27,880
Posted By c19h28O2
So I've now successfully got my email coming down...
So I've now successfully got my email coming down to my pc but i'm having a problem sending emails...

I've added a relay host of smtp.gmail.com but the emails don't appear to be leaving my comp......
27,880
Posted By c19h28O2
Your right it would be easier to just forward...
Your right it would be easier to just forward them via gmail but I don't have the option to forward them in plain text :mad:

Unfortunately gmail required smtp username and passwords :-(
27,880
Posted By c19h28O2
None Taken :-) Cool so on the outbound...
None Taken :-)

Cool so on the outbound server can I give that my username and password as parameters? (gmails smtp requires it)
27,880
Posted By c19h28O2
Sorry I'm not explaining myself very well am I! ...
Sorry I'm not explaining myself very well am I!

Ok, I'd like my mac to download all of my google messages and forward them on to my yahoo account.

The reason for this is i'd like the mail to...
27,880
Posted By c19h28O2
Basically I'm trying to download the messages...
Basically I'm trying to download the messages from my google account and forward them on but I'm struggling to get anywhere!
27,880
Posted By c19h28O2
Hi, Thanks that worked, I'm now getting an ...
Hi,

Thanks that worked, I'm now getting an

fetchmail: connection to localhost:smtp [::1/25] failed: Connection refused.

error?

any ideas?
27,880
Posted By c19h28O2
fetchmail imap gmail certificate
Guys,

could you tell me how to create an imap gmail ssl certificate?

in my .fetchmailrc file I have

poll imap.gmail.com protocol IMAP user "xxxxx@gmail.com" there with password "xxxx"...
1,467
Posted By c19h28O2
reborg, Thanks for your help, i've just...
reborg,

Thanks for your help, i've just added an alias in my profile as the original vim is a binary rather than a link so just pointed to the new one.

Cheers

Michael
1,467
Posted By c19h28O2
creating link to new vim
Hi,

I have installed vim 7 but I'm unsure how to point the 'vim' command to the new vim version rather than version 6.

Thanks in advance.

Michael
2,628
Posted By c19h28O2
Thanks, do i just need to reference the new...
Thanks,

do i just need to reference the new version and then run chsh?
2,628
Posted By c19h28O2
Upgrading bash on Darwin (osx)
Hi,

I have installed bash 3.2 via darwin ports, however when I try and change the shell i.e. chsh -s /opt/local/bin/bash is says its a non-standard shell? but if i run ./bash i get a new bash...
3,839
Posted By c19h28O2
Hi, Yes that works fine, i've pasted that...
Hi,

Yes that works fine, i've pasted that into my .bash_profile and it works fine now.

Cheers
3,839
Posted By c19h28O2
cannot run program
Hi,

I have a program in /opt/local/bin, my path in my .profile is

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

however when i type the program name it cannot find it, however i know the...
9,062
Posted By c19h28O2
Thanks, do you know how to wrap the ' '...
Thanks,

do you know how to wrap the ' ' around a sed argument when passing to a varible?

i.e.

arg1=$1
file=$2

sed $arg1 $file > temp
mv temp $file

so if i run, myscript '1,2d'...
9,062
Posted By c19h28O2
Hmmm i think i have answered my own question,...
Hmmm i think i have answered my own question, what i was missing was the >> operator

sed '1,2d' >> test test.

Sorry about that!
9,062
Posted By c19h28O2
sed question
Hi,

When deleting lines using sed, as i understand the lines are redirected to the standard output. What i'm unclear about is how to actually modify the file?

If I write the command sed '1,2d'...
Forum: Solaris 09-12-2006
5,587
Posted By c19h28O2
Hi Dak, I'm not at the box at the moment...
Hi Dak,

I'm not at the box at the moment (its a work machine!) but does that not set the line numbers on?

Thanks
Forum: Solaris 09-12-2006
5,587
Posted By c19h28O2
Hi, unfortunately that doesn't work, if i...
Hi,

unfortunately that doesn't work, if i use :set all i get these options?

noautoindent number tabstop=8
autoprint nonovice ...
Forum: Solaris 09-12-2006
5,587
Posted By c19h28O2
number pad in vi
Hi,

I'm on a sunos SVR4.0 box, my number pad works on the command line but does not work in vi any ideas how to enable it under vi?

Thanks
14,236
Posted By c19h28O2
Not quite homework!, i'm a developer for Barclays...
Not quite homework!, i'm a developer for Barclays bank, shell scripting is new to me, and wondered about regular expressions, I've just ordered Shells by example, hopefully that should point me in...
Showing results 1 to 25 of 37

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