Does anyone already have a script to read/set dates in /etc/shadow ?
thanks
./Jason
refernce:
http://www.tldp.org/LDP/lame/LAME/linux-admin-made-easy/shadow-file-formats.html
The ``/etc/shadow'' file contains password and account expiration information
for users, and looks like this:
smithj
>* cannot rename/move files (if I want to rename file, do I have
>to copy it to same directory under new name and then delete old file or
>is there some easier way?)
You can use 'rename to rename files in the same directory (eg. rename
%/c/view/a.txt %b.txt), but must do a copy/delete if the
Hi Ladislav,
>Have a look at the ERROR! datatype to see another example of this
As usual! :-)
So we have:
string! / any-string! (parse)
block! / hash! (parse)
object! / error! (disarm)
A parse bug makes list! fail.
No more?
Thinking to error!: could be introduced a global option
Hi Ladislav,
> What about lists?
Starting my experiment with parsing list.
First result: it does not work under View 1.2.1.3.1 and 1.2.5.3.1.
This means that parse always fails with list! when using set-word to change
the list.
I think that 'b is a copy of 'li in this example:
li: make list! [1
Hi Romano,
<>
The interesting fact is that this is the only case (i know) where the same
data has two different datatype in Rebol.
<>
Have a look at the ERROR! datatype to see another example of this
Ciao
-L
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "u
Graham wrote:
> Some people produce price lists using Excel, but I didn't
> think that Excel could link cells to an ODBC source. And
> Publisher can't AFAIK.
Excel can quite easily link to ODBC data sources. To do so create an ODBC
source database then:
Data -> Get External Data -> New Databa
What about lists?
Ciao
-L
- Original Message -
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 9:56 PM
Subject: [REBOL] Sameness block and parse
The same which is true for string is true for hash and block and list!
I must check if
Hi Gabriele,
just a question: is there really a solution (not a joke), that would work
differently than Romano suggested?
Ciao
-L
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
I was thinking the other day that I couldn't recall any
packages that can create a desktop publication from a
database eg. price lists.
Some people produce price lists using Excel, but I didn't
think that Excel could link cells to an ODBC source. And
Publisher can't AFAIK.
You can do it in Zop
The same which is true for string is true for hash and block and list!
I must check if this mess the hash!
It could be very useful.
>> ha: make hash! [1 2 3]
== make hash! [1 2 3]
>> parse/all ha [b:]
== false
>> b
== [1 2 3]
>> type? b
== block!
>> insert b 5
== [1 2 3]
>> ha
== make hash! [5 1
Hello Ammon,
Thursday, May 23, 2002, 4:08:29 AM, you wrote:
AJ> in debugger (work in progress) One of the things that will be available is
AJ> some more advanced styles and a skinning system. The whole idea of the
AJ> server is to provide a SorceForge type comunity for REBOL developers. I a
> Is there such a beast or must one write a function to do it?
round: func [x] [to-integer .5 + x]
Enjoy ;-)
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
Hi Ed,
<< Does anyone have some sample REBOL code out there that can connect to a
M$ OutHouse (OutLook =) mailbox, scan all the new messages in there and
send out emails based on the subject line? >>
I haven't done anything from REBOL, only via automation from VB. Check out
http://msdn.microsoft
Hi Mat,
> >> print to-integer 1.6
> 1
I don't know of one, but here's my own:
round: func [
dec [integer! decimal!]
/local int
][
if 0.5 <= (dec - int: to-integer dec) [int: int + 1]
int
]
- Chris
--
To unsubscribe from this list, please send an email to
[EMAIL
Hi Mat,
Here's a rounding function that might do what you want. Watch for word-wrap!
; Ladislav Mecir, Gregg Irwin (minor adjustment)
mod: func [
{Compute a remainder.}
value1 [number! money! time!] {The dividend}
value2 [number! money! time!] {The divisor}
>> do %castro.r
** Script Error: Word source is protected, cannot modify
** Near: source: get-style/styles 'file-list fidel
destination:
I can disable protect-system in %user.r, but perhaps better for everyone if
name-conflicts in castro.r can be avoided?
./Jason [who agrees castro a great ide
Folks,
>> print to-integer 1.6
1
I can't for the life of me find a word which does the same as this but
which actually rounds (so you'd get 2) rather than just chopping off
the remainder.
Is there such a beast or must one write a function to do it?
I've actually resorted to doing exactly this
___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
-- Attached file included as plaintext by Listar --
-- File: Xcopy.r
-- Desc: Xcopy.r
REBOL []
xcopy: func [src [file! url!]
>Crashing on a reb-site?
>
>why not
>
> dir1: %./
> dir2: dirize view-root/public
>
>also to use editor without security-question,
>you can use something like
> append ctx-edit [
> prefs: clean-path %./edit-prefs.r
> ]
>
>next wishes:
>saving current directo
Hello,
I'm working on CASTRO right now so I've uploaded work in progress.
added and fixed:
* does not crash on path (starts in local directory)
* copy, delete, make-dir added (copying 5MB file takes less than
second on P350 - good surprise for me)
* four different langua
ATTENTION!
This is the solution of the sameness problem (followed by some comments):
a: #{31}
parse/all a [b:]
The interesting fact is that this is the only case (i know) where the same
data has
rebol665 wrote:
>Hi Bolek
>
>Trying to run Castro (BTW I like the name!) I got the following. I have no /c/view/
>directory
>
>** Access Error: Cannot open /c/view/
>** Where: list
>** Near: pt: read path
>files: copy
>
>
just read and write Castro locally and edit it - you will find above
me
Am Mittwoch, 29. Mai 2002 08:20 schrieb Boleslav Brezovsky:
> I'm really sorry, it's on http://www.sweb.cz/rebolek/castro.r
>
> or sites/rebolek/castro
>
> and - if you does not have directories %/c/ and %/c/view/ then the
> script crashes so you have to change the sourcecode.
>
Crashing on a reb
Hi Bolek
Trying to run Castro (BTW I like the name!) I got the following. I have no /c/view/
directory
** Access Error: Cannot open /c/view/
** Where: list
** Near: pt: read path
files: copy
>>
Patrick
>I'm really sorry, it's on http://www.sweb.cz/rebolek/castro.r
>
>or sites/rebolek/castro
Hi bryan,
On Wednesday, May 29, 2002, 10:03:19 AM, you wrote:
b> I know there's the pdf maker script out there, I was wondering if there
b> are any scripts/dialects out there for reading a postscript/pdf file?
"Reading" a PostScript actually means executing it, and it is a
FORTH-like langua
I know there's the pdf maker script out there, I was wondering if there
are any scripts/dialects out there for reading a postscript/pdf file?
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
26 matches
Mail list logo