Search Results

Search: Posts Made By: adshocker
1,959
Posted By adshocker
Thanks. I'm not quite sure what you did...
Thanks.

I'm not quite sure what you did there but correct me if I'm wrong.

The syntax below will show strings before "/". The char "\" is used for escaping. I'm guessing the chars "%%" and "*"...
1,959
Posted By adshocker
Need to split a string
Hi,

We have a SunOS 5.10 Generic_142900-13 sun4v sparc SUNW,T5240.

I'm trying to find a way to split a string into 2 variables.

Ex:
parm1="192.168.1.101/parent/child"

What I need to do...
8,930
Posted By adshocker
Hi, I know this is a bit old thread but I...
Hi,

I know this is a bit old thread but I stumbled upon another issue with this. I have basically a similar requirement but this time, I can't remove spaces in between.

Example:

$...
6,652
Posted By adshocker
How to echo space or tab delimited values into rows?
Hi,

I have the following code:


LIST=`ls | grep '.sql$'`
echo $LIST


The above code will give me something like..


file1.sh file2.sh file3.sh file4.sh file5.sh


I want to display...
4,003
Posted By adshocker
I'll try this and see if our 3rd party tool...
I'll try this and see if our 3rd party tool supports it.

Thanks.
4,003
Posted By adshocker
How to list files with no extension together with *.prog files?
Hi,

I know that to list files with no extension, we can use..


ls -1 | grep -v "\."


And to list .prog files, we can use..


ls -1 *.prog


or


ls -1 | grep '.prog$'
1,527
Posted By adshocker
Thanks. This helped solve one of my...
Thanks.

This helped solve one of my problems.

My next problem is if I wanted to do something like


echo "This is my body message" | email -t "admin@adshocker.com" -s "Sample"


or

...
1,527
Posted By adshocker
Thanks. I'd like to add the ability to do...
Thanks.

I'd like to add the ability to do the


myproc -t "PARM1" << EOT
Text here
EOT


How can I access the value passed in that way?

Regards.

---------- Post updated at 04:49 AM...
1,527
Posted By adshocker
Need help with procedure and parameters in a script
Hi,

I'm trying to create a procedure within my script and what I want is something like:


myproc () {
PARM1=value after -t
PARM2=value after -y
}

myproc -t "PARM1 Value" -y "PARM2...
Forum: Red Hat 05-13-2011
7,798
Posted By adshocker
How to setup Sendmail as SMTP Relay?
Hi Guys,

I want to setup sendmail using my username and password on my ISP to be able to send out messages.

I'm using Linux. So far, what I've done is modified the sendmail.mc with the...
Forum: Red Hat 04-15-2011
3,898
Posted By adshocker
I set it up as bridged. I think I'm using my...
I set it up as bridged.

I think I'm using my ISP's DNS servers.

I set it to static IP only on the Unix Box.


I did this and it does work. But not what I had in mind but thanks.
Forum: Red Hat 04-15-2011
3,898
Posted By adshocker
Can't ping my unix box by name
Hi All,

I have recently setup a Windows 2003 server as AD / Domain Controller. In it, I have a VMWare for RHEL 4. I have 3 other computers connected to the network all using Windows 7. These...
8,930
Posted By adshocker
Thank you so much! The later part works for me. :D
Thank you so much! The later part works for me. :D
8,930
Posted By adshocker
because $1 would display the whole thing. "1"...
because $1 would display the whole thing. "1" "2.3, 2.6" "3" as seen in the output in my first post.
8,930
Posted By adshocker
setting environment variables with space
Hi,

I'm having problems setting environment variable that has space value. Below is my shell script.

export LINE=$@
TO=`echo $LINE | awk '{print $1}'`
CC=`echo $LINE | awk '{print $2}'`...
2,176
Posted By adshocker
fortunately we have this tool. =) thanks....
fortunately we have this tool. =)

thanks. this was very helpful.
2,577
Posted By adshocker
thank you very much. both method works very well...
thank you very much. both method works very well for me.
2,176
Posted By adshocker
compress folder
hi guys,

i've read that i need to use tar first before gzip. just wanted to be sure if there's no way of compressing a folder with all its files like winzip in windows?

using tar then gzip in...
2,577
Posted By adshocker
need help extracting values from string separated by a delimiter
hi guys,

basically what i'm trying to do is fetching a set of columns from an oracle database like so...


my_row=`sqlplus -s user/pwd << EOF
set head off
select user_id, username from...
5,764
Posted By adshocker
hi, thank you for your help. i've manage to...
hi,

thank you for your help. i've manage to get my code working now with some minor changes. unfortunately we don't have base64 so i went with uuencode instead. below is my final and working code:...
5,764
Posted By adshocker
need help with my sendmail script
hi all,

i'm trying to use sendmail to send a message in html format with attachments but having some issues with the attachments. below is my code.

...
14,106
Posted By adshocker
thanks. and yes it's solaris :)
thanks.

and yes it's solaris :)
14,106
Posted By adshocker
hi, thanks for the quick response. i...
hi,

thanks for the quick response.

i tried as you suggested.


ksh smail.sh
./smail.sh
both are working fine without any errors.

does that mean i have an older version of shell that...
14,106
Posted By adshocker
bad substitution error in ksh
hi,

i created a shell script having the following content:


#! /usr/bin/ksh
FROM="myemail@domain.com"
MAILTO="someemail@domain"
SUBJECT="TEST"
BODY="/export/home/adshocker/body.txt"...
3,351
Posted By adshocker
[~]$ ps -p$$ PID TTY TIME CMD ...
[~]$ ps -p$$
PID TTY TIME CMD
20855 pts/5 00:00:00 bash
[~]$

thanks
Showing results 1 to 25 of 35

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