sh script works, zsh script doesn't

2006-05-25 Thread Vidiot
At the end of this e-mail is the script that I am attempting to run.  As it is
current written, the tsreader program will start and run, IFF the $LOG file
is told to run.  As can be seen, it is built as a SHell script.

If I comment out the ling that start $LOG and uncomment the line at the very
end, tsreader is started, but it complains about not receiving what it is
expecting for the tsreader_twinhan1030.dll source.  The items it complains
about are the last 5 values.

Yet, as can be seen, that same command line is placed into the shell-script
file and it works from there.  Starting directly from the Z-shell file
results in an error.

I run the script from cron, which doesn't allow me to see the error GUI.
When I run the crontan line by hand, then I see the tsreader error GUI.

I've asked the author of tsreader if there is an option I can do that will
create a log file with what it "sees" on the command line for options.  I just
sent that off before this e-mail.

But, if anyone has a clue as to why starting of a Windblows program from
a Z-shell doesn't work, yet from a shell-script, it does, I'd certainly
appreciate knowing.

Thanks.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email





#!/usr/bin/zsh

#
# TSReader batch file for universal capture - called from cron
#
# The capture options are placed on the command line, and consists of:
#
# -c  set C-band LO frequency (default)
# -d  destination drive letter, i.e., c, d, e, f or g (:\ added)
# -f  filename
# -k  set Ku-band LO frequency
# -l  length of capture, in hh:mm:ss
#   (hh, mm or ss can be single digits) - but all must be there
# -m  mux program stream ID to capture
#   if set to zero, the complete mux is captured (default = 0)
# -r  downlink frequency
# -s  symbolrate
#

# default variables
DATE=`date +%y%m%d-%H%M`
DRIVE=E
ERROR=0
FILENAME=TSReader-DVB
FREQ=""
LENGTH=""
LOG=/tmp/Timer-TSReader.log.$$
LOFREQ=5150
MUX="-a 0"
PATH=${PATH}:/cygdrive/c/Program\ Files/COOL.STF/TSReader
SYMB=""

while getopts cd:f:kl:m:r:s: OPT
do
case "$OPT" in
(c) LOFREQ=5150
;;
(d) DRIVE=$OPTARG
;;
(f) FILENAME=$OPTARG
;;
(k) LOFREQ=10750
;;
(l) LENGTH=$OPTARG
;;
(m) if [[ $OPTARG -ge 1 ]] then;
   MUX="-r $OPTARG"
   fi
;;
(r) FREQ=$OPTARG
;;
(s) SYMB=$OPTARG
;;
esac
done

if [[ $LENGTH = "" ]] then;
ERROR=1
echo "No length given (-l)" >> $LOG
fi
if [[ $FREQ = "" ]] then;
ERROR=1
echo "No sat frequency given (-r)" >> $LOG
fi
if [[ $SYMB = "" ]] then;
ERROR=1
echo "No symbol rate given (-s)" >> $LOG
fi
if [[ $ERROR -eq 1 ]] then;
echo "" >> $LOG
echo "One too many errors, giving up." >> $LOG
exit 1
fi

# convert human length into TSReader seconds
HH=`echo $LENGTH | cut -d: -f1`
MM=`echo $LENGTH | cut -d: -f2`
SS=`echo $LENGTH | cut -d: -f3`
LENGTH=$(( $HH * 3600 + $MM * 60 + $SS ))

echo "#!/bin/sh" > $LOG
echo "#Starting TSReader at $DATE" >> $LOG
echo "tsreader -1 -d -i -s tsreader_twinhan1030.dll $MUX \
${DRIVE}:\\${FILENAME}-${DATE}.ts $LENGTH \
$FREQ 0 $SYMB $LOFREQ 0" >> $LOG
chmod 775 $LOG
$LOG

#tsreader -1 -d -i -s tsreader_twinhan1030.dll $MUX 
${DRIVE}:\\${FILENAME}-${DATE}.ts $LENGTH $FREQ 0 $SYMB $LOFREQ 0

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sh script works, zsh script doesn't

2006-05-25 Thread Vidiot
An added tidbit.  I turned the LOG script into a Z-shell script by changing
the first line to "#!/usr/bin/zsh" and tsreader started just fine.

It is the main Z-shell script that is having trouble starting tsreader and I
have no clue why.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sh script works, zsh script doesn't

2006-05-26 Thread Vidiot
>I think that the problem is the difference between ZSH's parameter
>expansion and sh's parameter expansion. I think that your $MUX gets
>expanded into single parameter "-a 0", instead of two parameters "-a"
>and "0", that you expect.

I separated MUX into two separate variables.  Believe it or not, things got
worse.  Now it isn't complaining about the last five items on the command
line being wrong, but the option that I split up.

When I run the external script that is created on the fly, that starts
tsreader just fine.  Yet, from within the main script it won't.

I'm going to have to set -x within the script so that I can see what it
is doing.  I ran out of time during lunch to see what that provides.

A real brain teaser.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sh script works, zsh script doesn't

2006-05-26 Thread Vidiot
[Can the listmaster fix the mail list so that it sends the reply back to the
list and not to the poster?  I sent the e-mail before remembering that this
mail list gets it wrong, at least AFAIAC.]

>Vidiot doesn't really state how zsh fails, so I'd really like more
>details as to what he's seeing.

That is just it.  I don't know what it is doing wrong.  The program that it is
attempting to start complains about the options that it is given as being
wrong.  But, if I take that same command line and place it into another script
and run that script, the program starts just fine, with EXACTLY the same
options I BELIEVE are being passed to it from within the zsh script.

I even did a test where I created a script called foo that did nothing but:

tsreader $@

In the calling zsh script, I replaced tsreader with foo and it worked.

Hence my confusion.

I've not heard back from the author if there is an option, or setting, that
I can use that will spit out a shitload of info into a log.

I need to know what tsreader "thinks" it is getting for values.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sh script works, zsh script doesn't

2006-05-26 Thread Vidiot
IT WORKS!!!

The original problem with the "-a 0" being a combined value was it.  When I
separated them, I get the echo into the log correct for the new variable
names, but had a typo for for one of them in the actual command launch.

Thanks for the pointer/tip.

Onward and upward.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sh script works, zsh script doesn't

2006-05-26 Thread Vidiot
>There is nothing wrong with this mail list, although it may not conform to
>your personal preference.  This list does not dictate to the sender where
>replies will go.  It leaves that up to the sender.  If posters want email
>to go to the list rather than to them, it's simply a matter of setting the
>"Reply-To" field to point to the list.  For those that want to make sure
>that they always reply to the list, simply use Reply-All.  It's that simple
>and gives everyone full control over how their email is directed.  IMO, that's
>far better than a heavy-handed rule enforced by the list administrator, but
>then that's my personal preference, which matters not either. ;-)
>Larry Hall  http://www.rfk.com

You are the first one, so far, that I've responded to that actually set the
reply to go back to the list.  As a result, replies are going back to the
sender only.  I am on several mail lists and this is the only one that
defaults to the sender, not the list, hence the ease in forgetting to
change the reply as to where it is going.

You are right, our mileage is varying :-)

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sh script works, zsh script doesn't

2006-05-27 Thread Vidiot
>Either that or you are just hitting "Reply" instead of "Reply-All".  Further
>discussion of this is OT for this list though so if you have further comments
>that you'd like to share, you'll need to follow-up on the cygwin-talk list.
>Larry Hall  http://www.rfk.com

Correct, as 99.9% of the e-mail that I get and respond to is a simple reply.
Old habits die hard when that is the way I answer the e-mail that I get, and
I get tons.

I'll just have to suffer through :-) :-)

We now return you to your regularly scheduled program.

BTW, having cygwin on the XP box has been a lifesaver, figuratively speaking.
As far as I am concerned, the XP's GUI idea of setting up timer jobs is
extremely cumbersome.  Being able to use cron to run a script to start a
program to run a DVB-S (satellite broadcast capture) card is extremely useful.
Also being able to use split to break up files bigger then 4GB, in order to
save them on DVD-ROM is a big plus.  I gew up with BSD 4.x, from way back and
rather use Unix/Linux any day over Windblows.

Kudos to all that have developed cygwin.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: FW: 200 GB drive has room but gzip indicates "No space left on device"

2006-05-29 Thread Vidiot
See, I am not the only one who fails to remember to change the reply.

>Replies to mailing list mail should go to the mailing list, not the
>poster... 
>
>-Original Message-
>From: David Christensen [mailto:[EMAIL PROTECTED] 
>Sent: Monday, May 29, 2006 2:05 PM
>To: 'Dave Korn'
>Subject: RE: 200 GB drive has room but gzip indicates "No space left on
>device"
>
>Dave Korn wrote:
>> Or could it be a dodgy AV program interfering with normal operations?
>
>I use McAfee Virus Scan Enterprise 8.0i.  It seems to work just fine with
>all my drives (up to 250 GB).
>
>
>David
>
>
>--
>Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:   http://cygwin.com/problems.html
>Documentation: http://cygwin.com/docs.html
>FAQ:   http://cygwin.com/faq/
>


-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
 \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]  X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Reloaded Win XP, now need to reload cygwin - sorta

2007-06-23 Thread Vidiot
I had to replace the mobo because, well, simple, the other one died :-(

I had to reload WinXP-SP2 because the mobo drivers that were there didn't
simply cause an error and abort, they caused (or at least the one that did this)
the boot process to fail and caused a reboot.  So, XP-SP2 was reloaded.

All of the cygwin install files from the previous install are there, but
obviously all of the files that were installed into XP are now gone, as well
as any startup stuff, like crontab.

If I rerun the installer at point it at the local copy of the install files,
will I be ok, in that, it won't remove my currently installed user files?
Or should I make a copy of that user directory and then copy it back after
the install?

I have important scripts there that I do not want to lose.

Also, where was/is the crontab file placed when crontab -e is run?

Thanks.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-24 Thread Vidiot
Larry Hall responded:

>'setup.exe' will only remove files when uninstalling or upgrading.  It won't
>remove configuration files that have been modified.  Also, if the "user 
>files" in question were not installed by Cygwin, they will not be touched.

Thanks.

>> Also, where was/is the crontab file placed when crontab -e is run?
>
>/var/cron/tabs

D'Oh!

>Keep in mind that if XP has been reinstalled, the ownership of the files
>will not be correct.  Best to update the ownerships in Windows.

Why would that be?  Windoze has ownership placed against files?  I've never
seen a way to see said ownership info, like I can with Unix.  I'm the same
Windoze user on both installs.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-24 Thread Vidiot
OK, now I am completely confused.

After bringing up the system, I tried running the cygwin batch file and it
complained about not being able to find the zsh program (I run Z-shell).

So, I figured that I needed to reinstall cygwin.  Hence the question I
previously posted.

Well, I ran the installer and it said that there was nothing to install,
though it did place the shortcut on the desktop.

I ran it and sure enough, now my "xterm" is up on the screen.  I can run
crontab and it shows me my configuration.

But, there the good news ends.  While attempting to modify the crontab
file, it had a permission denied when trying to write my tabs/Vidiot file,
just as it was expected.  As previously posted, I have no idea how to
change the permission of said files.

I also just looked at all of the running processes and I don't see anything
with cron in the process name.  I can see zsh.exe, which I should :-)
But I don't see cron.  I don't remember how that is implemented under XP.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-24 Thread Vidiot
Jason reponded:

>Is this Windows XP Professional or Home?  You may be using Simple File
>Sharing (http://support.microsoft.com/kb/304040) which dumbs down the
>security permission rules quite a bit.

Pro

>Turn it off if you can and you will have a 'Security' tab on the
>properties when you right-click on a file or folder.

I wouldn't have the slightest on how to do that.  I've never had the
problem to ever deal with it before.  Not sure if it is even a problem
now.  I'll be running setup shortly, so we'll see.

>The reason you need to update your permissions is because Windows ties
>permissions to a unique SSID for each user.  When you reinstall, even
>if you set up the same user names, the SSIDs associated with them are
>different.

Ah, a hidden thing I never have had to deal with.

I wouldn't know how to change ownership permission of Windoze files, since
I've never had to do it, nor have I ever seen along the lines of chown.

Thanks for the response.

I'll report back my update results.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-24 Thread Vidiot
Brian responded:

Sorry about all of the silly questions, though not so silly to me, since
I don't set up cygwin everyday and have only done it once, quite a while
ago.  THerefore I have forgotten most of what I did to set it up in the
first place.

>Probably because you had no mount table.

But that shouldn't be anywhere near the C:\WINDOWS directory.  Permissions
like before?

>Setup read the file that stores the choices of what packages you've
>selected (from the file /etc/setup/installed.db) and saw that this list
>corresponds to the most up-to-date versions of those packages available,
>so there was nothing for it to install.  But since there was no mount
>table, it did recreate that.

OK.

>Just chown the file, "chown username filename".  In order for this to
>work though you might need to recreate your /etc/passwd and /etc/group
>files, as that is where Cygwin gets the username <-> SID mapping.  Or
>you could just do it in explorer, right click, properties, take
>ownership.

The chown command work.  I'm guessing that the cygwin installer updated the
password and group files.

Just to see, I did a right-click->properties on the crontab file and another
datafile and there is no such option.  Just the normal read, archive
settings at the bottom and file sizes, etc.

>You'll have to reinstall any services that you had installed before.

Got a web page link to point me to how to restart cron?  The man page for
cron was no help at all, as each of the three locations mentioned to not
exist.

The User doc mentiond cygserver.conf, but that file hasn't change since
initial install in April of last year.  There is no cron entry in there.
The comprehensive user guide is not so comprehensive, since service setup
for daemons like cron are not mentioned in the manual.

I reran the /usr/bin/cygserver-config script to reinstall that, though I
never had an entry in there for cron.

The cygserver is now running, but still no cron.

So, I'm at a loss as to what I did the first time around to make cron
operational.  Needless to say, once I get it running, I will make note
of it in a readme file.

>Essentially, to sum up your question: Things that are stored as regular
>files survived the reinstall, things that are stored in the registry did
>not.  And additionally, Windows considers your new account different
>from the previous one, though it may have the same name.

Correct.  In addition, anything installed in c:\WINDOWS was deleted, as
well and any services that were set up.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
I GOT IT WORKING!

The clues that got me thinking were the login problems with cron-config
and the manual timer setup problems with TSReader.  Both complained about
not being able to complete, because of login problems.

So, I set up the system in classic login mode and sure enough, I couldn't
log in.  Somehow, someway, I got set with no password.  Once I set it,
cron-config worked and cron started my job and the program didn't hang.

It had to be installed running as me, not privledged user.

After all this, it would be real helpful to others to update the User Doc
so that there is a section on how to start services like cron and ssh,
to name a couple.  Even the FAQ should have entries about it.  Right now
neither contain anything at all on how to start these things and they
definately do not start like they would under Unix/Linux.

Thanks for the hints.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
Larry responded:

>Both 'cron' and 'ssh' have config scripts that handle installing and
>starting the service for you, if you let them.  They are documented in
>their README files in '/usr/share/doc/Cygwin'.  'cygrunsrv --help' gives
>you an overview of the command and it's available options.

That is all fine and dandy if you know where to look.  A new user isn't
going to have a clue and I hadn't dealt with configuring cygwin in over a year,
so I promptly forgot.

So, new users are going to rely on the on-line documentation.  In this
case there is nothing.  Would be be that difficult to document the
configuration of programs like this on line?  The web page did say that the
user doc is comprehensive and it isn't.  And, the FAQ is meant for queries
like this and it too has nothing.

I think it is a suggest well worth looking into.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
I just thought of something else.

Why not have the setup program have a section where it asks if the user wants
to start services like cron and ssh, where there would be the selection box
and at the bottom of the GUI it would tell the user to reference the readme
files in the doc directory as well as running cygrunsrv --help to start
services not selected during setup.

I'm actually surprised that cron isn't started by default, since it has been
with every Unix/Linux install I've done.  The ssh daemon has been optional
and must be set up later.

In any event, asking during the install would be nice, even if it is a
reinstall.

Food for thought.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
Larry:

>You may be surprised to find out that these ideas are not new.  What's been
>missing in the past has been patches that do something like what you suggest
>in a compelling way.  If you're interested, you may be able to remedy that.

I'm happy to read that the idea isn't new.

As much as I'd like to update the setup program, I know zero about Windoze
programming, and really prefer to keep it that way.  I'm a Unix programmer,
born an bred.  If you were talking Sun package install, then it would be
right up my alley.

And since I suspect the setup program requires Windoze programming knowledge,
I would not be any help in adding that feature.

It must not be easy, or it would have been done by now?

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
DaveK responded:

>  No, it's a really bad idea.

Interesting.

>  Your suggestion amounts to "People might look in the wrong place for the
>documentation, so put all the documentation in every single place they might
>look".

Yes and no.  As I pointed out, the on line web page says that the user
doc, in HTML and PDF format, is a COMPREHENSIVE user manual.  Last time I
looked, comprehensive didn't mean that important items were left out of
the documentation.  Starting services like cron and ssh are important.

You're saying that the user doc (HTML or PDF versions) is NOT a good place for
users to find instructions?  Strange, that is what I thought comprehensive
user docs were for.  So, for a user to click on User Docs and then search
those pages for cron configuration is wrong?  It is the front line document
on the web site and should contain said information. 

I'm sorry but that is just plain opposite of what on-line documentation is
supposed to provide.

>  Of course, anyone who bothers to read the FAQ will see the entry entitled
>"Where's the documentation", and know where to look for it, and anyone who
>doesn't bother to read the FAQ isn't going to see the information about how to
>set up servers even if we did pointlessly duplicate it there, so your idea
>would help precisely zero people.

The FAQ is huge.  I did a search of the FAQ for "cron" (browser text edit
search) and came up blank.

Gee, that is what FAQs are for, asking questions that are supposidly elsewhere
in the documentation (one hopes) and getting pointers as to where to go, if
it can be done.  So a simple FAQ entry like:

Q: How do I start services like cron, ssh and others?
A; See the README file pertaining to the particular service in
   /usr/share/doc/CYGWIN or run "cygrunsrv --help"

I think I got the path right, it is from memory, but you get the point.
It is simple entries like that that are user friendly.

Why are you so antiuser?

>  Do you work for the Department of Redundancy Department, by any chance?

Finding info in more than one place is not bad.  Cross referencing in
documentation is a good thing.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
Igor posted:

>What do you mean, nothing?  What about this:
>?

As I indicated in a previous posting, I text searched the large FAQ for
cron and came up with nothing.

Your reference has the following:

There is a comprehensive Cygwin User's Guide at
http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html and an API Reference at
http://cygwin.com/cygwin-api/cygwin-api.html.


As mentioned in previous postings, notice the word comprehensive.  The manual
is not so comprehensive if it doesn't describe how to set up services like
cron (especially since cron is such a common Unix/Linux service).

It would have been nice if I had read that.  Dumb thing is that I looked
right at that as well.  It was I that I was mentally focused on finding
references to cron.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Reloaded Win XP, now need to reload cygwin - sorta

2007-06-25 Thread Vidiot
Larry responded:

>The 'setup.exe' code is in a "challenged" state which can make adding
>features "challenging".  Perhaps you'd like to provide a Sun installer
>and then port it to Cygwin. ;-)

Now we are just being funny. :-)  I said that I could use the Sun package
facility for doing installs and uninstalls, not that I could write such
a facility, especially for Windoze.

Sorry to read that setup is challenged.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



How is cron started

2007-10-10 Thread Vidiot
At the moment, my piece of crap mobo wants to screw up every now and then.
I'm looking for a different mobo and processor.

Tonight, for example, it decided to croak and reboot.  So, I wanted to turn
off having to log in so that my stuff will restart.  I don't remember how
I set XP to cause the login to appear.  I've only gotten it to remove my
password, but I still have to click on my login name (the only name).

Well, I discovered that cron didn't start.  Because of it, a job that was
supposed to start, didn't :-(

Just where is cron stated in an XP SP2 system?  I installed it to work for me.

Thanks.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How is cron started

2007-10-10 Thread Vidiot
>Start | Control Panel | Administrative Tools | Services

Thanks, it actually started.  I forgot that it was cygrunsrv and it is in
the task manager list of tasks.

Now to figure out what went wrong.

Isn't cygrunsrv supposed to show up when I do a ps?

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How is cron started

2007-10-11 Thread Vidiot
>Start | Control Panel | Administrative Tools | Services

When I re-enabled my password, both cygrunsrv and cron started and showed
up in my process list.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Writes to Samba mount, sort-of

2007-11-18 Thread Vidiot
>From within a terminal, I run zsh.  I have no trouble, via the command line,
creating files on a Samba mount, or transferring files to the Samba mount.

When I try and do the same thing from within a cron job, that starts a zsh
script, I cannot create or copy files to a Samba mount.

Can anyone think of a reason why this would be so?

Thanks.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: how to change the prompt in Cygwin

2008-01-05 Thread Vidiot
>Could you please help on how to remove the path display in my Cygwin?
>It looks like following and I don't like it:
>
>[EMAIL PROTECTED] /cygdrive/c/Documents and Settings/Desktop
>$
>
>I want to change to
>
>[EMAIL PROTECTED]
>
>it is concise and good enough. please suggest.

I use zsh, but the following can be modified to fit your needs:

if [[ xterm = $TERM || vt102 = $TERM ]]
then export PROMPT="%{^[[1m%}BRN <%h> %{^[[0m%}"
else export PROMPT="BRN <%h> "
fi

The first prompt lines sets the simple prompt in bold and the ^[ is the real
control character, not the ^ and [ characters.  The second prompt line is
when it isn't an xterm or vt100 window (can't set the text in bold).

Because I still want to see the current path location, I send it to the
title bar:

if [[ xterm == $TERM || vt102 == $TERM ]]
then chpwd() echo -n "^[]2;${PWD}^G"
fi
if [[ xterm == $TERM || vt102 == $TERM ]]
then chpwd
fi

Again, the ^[ and ^G are real control characters.  These lines go into the
.zshrc file.

The above method for setting the title bar isn't perfect, as it is easy
to change into a directory that ultimately doesn't call chpwd.  When that
happens, just do a "cd ." and that will update the path.

Adjust to your taste and shell.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: How can I run a script?

2008-01-14 Thread Vidiot
>Now all I have to do is setup in windoze scheduler and move about 30GB of data.
>btb

And you are not using cron because of what reason?

The Windblows scheduler is a royal pain.  With cron you are done in a matter
of moments.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/