[EMAIL PROTECTED] wrote:

> Jam 15:03 tadi, l'anastasia bilang:
>
> > tanya nih om-om....
> > saya lagi coba mbikin bash script. Kalo variabel "$?" misalnya, itu khan
> > return value program yang jalan.
> > variabel apa sih stderr, stdin dan stdout-nya bash ?
> >
>
> maksudnya apa sih pertanyaannya kok jadi bingung ya :)

Maksud saya Special Variabel yang menampung stdin, stdout dan stderr. mirip ama
filehandle
<STDIN>, <STDOUT> dan <STDERR>-nya perl

> maksudnya yang seperti di c ?
> #define stdin  0
> #define stdout 1
> #define stderr 2

opss, kurang paham c
:-/

> perasaan bash nggak ada variable buat simpen input outputnya, misalnya
> dari file apa (nama file) dia dapet input, outputnya ditulis ke file apa,
> dll
>
> tapi kalo cuma sekedar pengen fprintf(stderr,"somestring") sih bisa..
>
> di bash (unix environment):
> bisa pake nomer-nomer 0,1,2 atau bisa juga pake /dev/std???

oooo, ada contoh penggunaan stderr, stdin dan stdout dari /dev ini ? Kali bisa aye
pake
:-)

TIA

--
Yahoo! ID: st1llg0tth3blu3s
ICQUIN: 131877402
---
Thu Oct  4 17:50:01 JAVT 2001

Nobody suffers the pain of birth or the anguish of loving a child in
order for presidents to make wars, for governments to feed on the
substance of their people, for insurance companies to cheat the young
and rob the old.
                -- Lewis Lapham




-- 
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3

Kirim email ke