🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8878

script bash

#8878
From: natxete
Date: Mon, 30 Sep 2002 16:56
19 lines
1518 bytes
Hola:

estoy haciendo mis primeros pinitos en scripts de bash, y bueno, tengo un 
"poblema":
#!/bin/bash
su - postgres
Password:xxxxx

la idea es que al llamar al script se autentique directamente y luego me 
haga un pg_dump y me lo guarde con un trabajo del crontab a una hora 
determinada. Podr�a hacerlo como usuario postgres, claro, pero me ha picado 
la curiosidad y quer�a hacerlo como mi usuario. El "poblema" es que me pide 
la contrase�a y ah� se queda esperando a que se la meta. 

Alguna idea? 

Saludos, 

Natxo
Technical Details
Message-ID: <gnv9na.lh.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!news.tiscali.nl!127.0.0.1!nobody

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,81f938437faea8c7,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-09-30 11:57:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!news.tiscali.nl!127.0.0.1!nobody
From: natxete <natxete@tux.com>
Newsgroups: es.comp.os.linux.programacion
Subject: script bash
Date: Mon, 30 Sep 2002 18:56:16 +0200
Organization: Tiscali Benelux
Lines: 19
Message-ID: <gnv9na.lh.ln@127.0.0.1>
Reply-To: ti050918@tiscali.nl
NNTP-Posting-Host: 195.240.115.139
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: reader1.tiscali.nl 1033412227 19308 195.240.115.139 (30 Sep 2002 18:57:07 GMT)
X-Complaints-To: newsmaster@tiscali.nl
NNTP-Posting-Date: Mon, 30 Sep 2002 18:57:07 +0000 (UTC)
User-Agent: KNode/0.6.1