Search Results

Search: Posts Made By: djehresmann
Forum: OS X (Apple) 06-23-2013
3,564
Posted By djehresmann
Ok, I believe I have the apache configuration...
Ok, I believe I have the apache configuration issue worked out. I can start Apache and go:


www.localhost/~djehres/cgi-bin


and my files ( *.pl ) show up.

But the html tags also show. ...
Forum: Programming 06-19-2013
1,806
Posted By djehresmann
General question about learning Python
I am planning on taking a class in Python. My choices are 2.5 or 3.0. Which version should I choose? I am getting the impression they are two separate paths.

thanks.
Forum: OS X (Apple) 06-17-2013
3,564
Posted By djehresmann
Perl CGI
I am trying to get my MacBook Pro with 10.8 Mt Lion set up to run Perl CGI scripts.

Having a problem. I can start Apache Web Server with no problems.

Why do I put the static and dynamic...
1,615
Posted By djehresmann
Remove whitespace after pipe symbol but not inside words
I have a file that looks like this:


102| #2 X 1/4-INCH| 30188| EA| FTW| A| NOT SERIAL TRACKING| NOT LOT TRACKING| TRUE| #2 X 1/4-INCH
102| #2 X 1/4-INCH| 30188| EA|...
843
Posted By djehresmann
Thank you! I was trying named buffers but...
Thank you!

I was trying named buffers but could not get it to work.

:)
843
Posted By djehresmann
How to paste string yanked into an edit in cmd mode?
I have 2 files open in Vim at the same time.

I yank from one with


16yw


and get this


INSERT INTO ALIS_PART_MANU_PART_TAB (SEQUENCE_NO,PART_NO,MANU_NO,MANU_PART_NO,ROWVERSION)...
8,348
Posted By djehresmann
Worked! Thank you very much. Yes. I need a...
Worked! Thank you very much.

Yes. I need a Vim solution because I am using Vim on Windows 7.

awk, cut, sed and so on can't be run on a windows box , right?

:)
8,348
Posted By djehresmann
Cut first column from file in Vi(Vim)
I have a parts file that looks like this:

EE36264|0NH46||Y|A|EA|0|0|0|N|LUNETTE 3" ADJ. EYE|0|0|*|0|PEOZZU|N|12|N|N|VPS|N|N|N|N|LUNETTE 3" ADJ. EYE|0|||Receive into...
1,668
Posted By djehresmann
Auto generate Line Numbers
How do I generate line numbers in Vi?

I have this:


,'04-90020-039N','61423','2GDV00039-0002', SYSDATE);
,'04-90020-040D','61423','2GDV00046-0001', SYSDATE);...
8,473
Posted By djehresmann
Sorry, Solaris 10 with Trusted Extensions.
Sorry,

Solaris 10 with Trusted Extensions.
8,473
Posted By djehresmann
tar to tape drive command
I want to use this command to tar to tape:

tar cf - DIR | compress > `hostname`_`date +%m-%d-%y`.DIR.tar.Z

this of course goes to the FS.

How do I modify this to go directly to tape?

My...
4,197
Posted By djehresmann
rsync command
What does this "current" keyword mean in this rsync command?
rsync -auv /data/log/trace remote_host::current/tmp
Of course remote_host is the remote server name. If I want to push files to a...
1,280
Posted By djehresmann
input file names to a script
What is a more efficient way to read files into a script? I don't want to hard code the file names like below:

for file in file1 \
file2

do
...
done

I want to execute the...
4,486
Posted By djehresmann
xterm programming
How do I use xterm to print a message in the window , not just in the title?

Right now I have:


xterm -rv -sb -title "The RMAN Backup was Successful!!!"


How do I print a big bold message...
7,837
Posted By djehresmann
exec command
Really. ok. I will give that a try.

Thanks!
7,837
Posted By djehresmann
exec command
With the exec command it is issued just once at the top of the script and everything goes to the log, i.e.

$exec 1> ${LOG} 2>&1

With the tee command it has is be issued after every command,...
7,837
Posted By djehresmann
exec command
Yes. I did look at the script command. Thanks.

I am trying to get away from the Korn Shell and the TEE command

#!/bin/ksh

command | tee -a $LOG

I thought there was a more elegant way to...
7,837
Posted By djehresmann
split stdout
Alister,

Is there a way to send stdout to the screen and to a log file?

thanks.
7,837
Posted By djehresmann
exec command
How can I use the exec command to log my korn shell session to the screen and the log file?

Currently I have this command:

$exec 1> ${LOG} 2>&1

This logs the output to the log file only. I...
1,915
Posted By djehresmann
Korn Shell .
Korn Shell .
1,915
Posted By djehresmann
format a read command
I have a read command like this:

print "enter the time to recover to: \n"
print "please use the format dd-mon-rrrr hh24:mi:ss"

read -n $dbtime

How do I format/check the read command to...
1,200
Posted By djehresmann
positional parameters and loading an array
How about this

print "enter the tablespace_names: "

read INPUT

array=$(echo -e "$INPUT")

print ${#array }
print ${array }

If I read the values into a variable like INPUT ( that would...
1,200
Posted By djehresmann
No. It has to be dynamic. It could be 2...
No. It has to be dynamic.

It could be 2 vars or 3 vars or more.
1,200
Posted By djehresmann
postitional parameters
Is it possible and how would you use postional parameter to prompt user input?

I want to ask the user a question like the following:

Enter the tablespace_name to backup:

Read the response if...
5,562
Posted By djehresmann
Thanks that works great. I got: while !...
Thanks that works great. I got:

while ! TRUE
do
print "enter a datafile number: "
read DBFILE

if [[ -n $DBFILE ]]
then
eval "
if [[ $DBFILE = ?($NEW_FILEID) ]]
then...
Showing results 1 to 25 of 47

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