![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
OK, so here goes...
Under Unix, you can type a shell command and end it with "&" (IIRC), and
it runs in the background. Is there any way of doing this under Windows?
Also, Unix as "sudo". Does Windows have anything similar?
(I just discovered that on Vista, you can't install Haskell packages
because the installer doesn't have permission to write the files. But
how the hell do you *give* it permission??)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Fredrik Eriksson
Subject: Re: Stupid question of the week
Date: 10 May 2009 16:15:19
Message: <op.utqc7szg7bxctx@e6600>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Sun, 10 May 2009 22:04:09 +0200, Orchid XP v8 <voi### [at] dev null> wrote:
>
> Under Unix, you can type a shell command and end it with "&" (IIRC), and
> it runs in the background. Is there any way of doing this under Windows?
As far as I know there is no way to run several concurrent processes in a
single command window, but you can use the "start" command to give the new
process its own window.
> Also, Unix as "sudo". Does Windows have anything similar?
Yes, "runas".
> (I just discovered that on Vista, you can't install Haskell packages
> because the installer doesn't have permission to write the files. But
> how the hell do you *give* it permission??)
Right-click the installer and select "Run as administrator".
--
FE
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> Under Unix, you can type a shell command and end it with "&" (IIRC),
>> and it runs in the background. Is there any way of doing this under
>> Windows?
>
> As far as I know there is no way to run several concurrent processes in
> a single command window, but you can use the "start" command to give the
> new process its own window.
This is what I was looking for. Thanks.
>> Also, Unix as "sudo". Does Windows have anything similar?
>
> Yes, "runas".
OK, I'll give that a try.
>> (I just discovered that on Vista, you can't install Haskell packages
>> because the installer doesn't have permission to write the files. But
>> how the hell do you *give* it permission??)
>
> Right-click the installer and select "Run as administrator".
Hmm. I'd have to compile the installer first. (Usually you just run the
installation program through the Haskell interpretter...)
Presumably I can use runas to give myself a command prompt with admin
access. (?)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Orchid XP v8 wrote:
> This is what I was looking for. Thanks.
Note that this is also the command equivalent for "nice".
> Hmm. I'd have to compile the installer first. (Usually you just run the
> installation program through the Haskell interpretter...)
Start the haskell interpreter that way. Note that you're really running as
administrator, so files created will be owned by administrator, etc. Sudo
only changes part of your identity.
> Presumably I can use runas to give myself a command prompt with admin
> access. (?)
Or right-click on the command prompt icon and pick "run as administrator".
--
Darren New, San Diego CA, USA (PST)
There's no CD like OCD, there's no CD I knoooow!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> This is what I was looking for. Thanks.
>
> Note that this is also the command equivalent for "nice".
What does "nice" do?
>> Hmm. I'd have to compile the installer first. (Usually you just run
>> the installation program through the Haskell interpretter...)
>
> Start the haskell interpreter that way. Note that you're really running
> as administrator, so files created will be owned by administrator, etc.
> Sudo only changes part of your identity.
I don't think file ownership will be a problem. The permissions on the
folder are set correctly, so I think it'll work.
(I wonder how you get it to do the thing where it *asks* for permission
to do stuff?)
Interestingly, the other day I tried to unzip a file into Program Files
and 7zip couldn't do it. However, Windows Explorer could. (It asked for
permission.) Interesting, eh? :-.
>> Presumably I can use runas to give myself a command prompt with admin
>> access. (?)
>
> Or right-click on the command prompt icon and pick "run as administrator".
This works on XP, but under Vista I couldn't see an option for that...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
>>> This is what I was looking for. Thanks.
>>
>> Note that this is also the command equivalent for "nice".
>
> What does "nice" do?
Allows you to run processes at a lower (or higher) priority.
--
DO NOT REMOVE THIS TAG (UNDER PENALTY OF LAW)
/\ /\ /\ /
/ \/ \ u e e n / \/ a w a z
>>>>>>mue### [at] nawaz org<<<<<<
anl
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>>> Note that this is also the command equivalent for "nice".
>> What does "nice" do?
>
> Allows you to run processes at a lower (or higher) priority.
Ah, I see. (Why the heck is it called "nice" then?)
I hadn't noticed the priority options to the "start" command...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible <voi### [at] dev null> wrote:
> Ah, I see. (Why the heck is it called "nice" then?)
Because when you write "nice program" in unix, it will start the program
at a lower priority, so that it will act nicer (ie. consume less resources).
This comes from the principle that unix is a multiuser system, and one
user hogging all the CPU is not nice, so it was always recommended to
start long-running CPU-heavy programs with "nice".
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
> I don't think file ownership will be a problem. The permissions on the
> folder are set correctly, so I think it'll work.
Yeah. NTFS has a better permissions model than UNIX does, so it's easier to
make sure files in a directory end up properly permissioned.
> (I wonder how you get it to do the thing where it *asks* for permission
> to do stuff?)
There's a flag in the header of the executable. Alternately, ...
> Interestingly, the other day I tried to unzip a file into Program Files
> and 7zip couldn't do it. However, Windows Explorer could. (It asked for
> permission.) Interesting, eh? :-.
... you try, you fail with a "permission denied" message, and you put up a
prompt saying "would you like to try again as administrator?"
>> Or right-click on the command prompt icon and pick "run as
>> administrator".
>
> This works on XP, but under Vista I couldn't see an option for that...
Open the start menu (with a left click), navigate until you see the command
prompt icon on the menu, and right click it. The second option should be
"run as administrator". It's the one with the security shield icon next to it.
Alternately, start a command prompt and see if it already says
"administrator" in the title bar, in which case you've already configured
your machine to bypass all the security stuff. :-)
--
Darren New, San Diego CA, USA (PST)
There's no CD like OCD, there's no CD I knoooow!
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
>>>> Note that this is also the command equivalent for "nice".
>>> What does "nice" do?
>>
>> Allows you to run processes at a lower (or higher) priority.
>
> Ah, I see. (Why the heck is it called "nice" then?)
A nice process shares more resources with the rest.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |