🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by natex Tue, 04 Mar 2003 03:41
[slrn] can slrn make a dir?
#121231
Author: natex
Date: Tue, 04 Mar 2003 03:41
10 lines
1377 bytes
Hi.
I need slrn to make the directory that I tell it to download to.
I am aware of the "set save_directory" option for .slrnrc, but this
doesn't quite accomplish what I need. If I choose a directory to
downlaod to, slrn complains that it does not exist. I need slrn to make
the directory. I haven't found anything in the docs or google, so any
help would be appreciated.

natex
Re: [slrn] can slrn make a dir?
#121232
Author: Alan Gutierrez
Date: Tue, 04 Mar 2003 03:57
15 lines
1575 bytes
In article <slrnb6884k.p1n.natex@smithling.homelinux.com>, natex wrote:
> Hi.
> I need slrn to make the directory that I tell it to download to.
> I am aware of the "set save_directory" option for .slrnrc, but this
> doesn't quite accomplish what I need. If I choose a directory to
> downlaod to, slrn complains that it does not exist. I need slrn to make
> the directory. I haven't found anything in the docs or google, so any
> help would be appreciated.

Why not just mkdir?

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: [slrn] can slrn make a dir?
#121233
Author: natex
Date: Tue, 04 Mar 2003 05:04
10 lines
1445 bytes
In article <slrnb689u0.7ra.ajglist@izzy.net>, Alan Gutierrez wrote:
<snip my post>
> Why not just mkdir?

That's what I'm doing now. ctrl-z to place slrn in the background
then creating the dir, then fg to get back. It's fine but not the
most efficient way. 

natex
Re: [slrn] can slrn make a dir?
#121241
Author: Jens Wahnes
Date: Tue, 04 Mar 2003 14:12
22 lines
1798 bytes
natex wrote:

> I need slrn to make the directory that I tell it to download to.
> I am aware of the "set save_directory" option for .slrnrc, but this
> doesn't quite accomplish what I need. If I choose a directory to
> downlaod to, slrn complains that it does not exist. I need slrn to make
> the directory.

You could write a macro that makes the directory first (e.g., using
system("mkdir "+directoryname)) and then sets save_directory accordingly
(i.e., set_string_variable("save_directory", directoryname)). 
directoryname should probably be an absolute path so that it won't
matter which directory you started slrn from.


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht
Re: [slrn] can slrn make a dir?
#122728
Author: Thomas Schultz
Date: Sat, 05 Apr 2003 17:59
17 lines
1755 bytes
* natex [2003-03-04 03:41] :

> I am aware of the "set save_directory" option for .slrnrc, but this
> doesn't quite accomplish what I need. If I choose a directory to
> downlaod to, slrn complains that it does not exist. I need slrn to
> make the directory. I haven't found anything in the docs or google,
> so any help would be appreciated.

I just patched slrn so that when you want to save a message and the
default directory does not exist, it will first ask you whether you
want to create it.
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2002-03-13] slrn 0.9.7.4 is out
| Home of the slrn newsreader | [2002-02-03] Screenshot page online
| http://slrn.sourceforge.net | [2002-02-03] "Port" to Mac OS X
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads