From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: Кто нить программит ?
Date: Thu Dec 27 10:27:01 2001
Message-ID: <20011227074221.GC2098@localhost.localdomain> (raw)
In-Reply-To: <20011227092954.35bb6809.vserge@menatepspb.msk.ru>
Hello Volkov,
On Thu, Dec 27, 2001 at 09:29:54AM +0300, Volkov Serge wrote:
>
> On Thu, 27 Dec 2001 08:57:29 +0300
> Sergey Krivulja <skrivulja@erec.ru> wrote:
>
> > Hello mandrake-russian,
> >
> > Кто нить программит на Паскале?
> > Мне необходимо срочно написать прогу
> > на Паскале. В ней предусмотреть перенаправление ввода-вывода.
> > Например так - progr1 par1 par2 < in_file1 > out_file2
> > progr1 - имя самой программы
> > par1 - параметр1
> > par2 - параметр2
> > in_file1 - входной файл
> > out_file2 - выходной файл
> >
> > Неподкажет кто?
>
> Может я чего не понимаю, но решение мне витится такое
> как один из вариантов разобрать строку параметров
> и после этого если есть "<" и за ним "in_file1" то читаьт из этого файла
> если есть ">" и за ним "out_file2" писать в него ???
Э-э-э... если речь идет о самой программе, запускаемой из shell,
среди ее параметров не будет никаких < in_file1 и > out_file2. Эти
файлы откроет shell и отдаст программе как stdin и stdout.
P.S. И помните: Real Programmers don't use Pascal ;)
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
Be wary of strong drink. It can make you shoot at tax collectors and miss.
-- Lazarus Long, "Time Enough for Love"
next prev parent reply other threads:[~2001-12-27 10:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-27 8:52 [mdk-re] " Sergey Krivulja
2001-12-27 9:33 ` Volkov Serge
2001-12-27 10:10 ` Roman Mediakov
2001-12-27 10:27 ` Mikhail Zabaluev [this message]
2001-12-27 11:57 ` [mdk-re] Кто нить программит на пасквиле? Michael Shigorin
2001-12-27 10:06 ` [mdk-re] Кто нить программит ? Roman Mediakov
2001-12-27 17:32 ` [mdk-re] " Mike
2001-12-28 9:48 ` [mdk-re] " Sergey Krivulja
2001-12-28 11:45 ` ROmul
2001-12-28 16:11 ` [mdk-re] " Mike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011227074221.GC2098@localhost.localdomain \
--to=mhz@alt-linux.org \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git