| Author |
Message |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Mon 02 Jan 2012, 00:43 Post subject:
Can we load sfs or pet from script ? |
|
here what i want to do...
1. create a folder " load-this"
2. create script to seek folder "load-this" and mount or install all pet or sfs in there
is it possible for me to do it ?
thank you
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2257 Location: Japan
|
Posted: Mon 02 Jan 2012, 03:48 Post subject:
Re: Can we load sfs or pet from script ? |
|
# sfs_load SOMETHING.sfs
# petget SOMETHING.pet
_________________ Multilingual Wary-511
Lucid Puppy Quickset edition
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
|
|
Back to top
|
|
 |
Jasper

Joined: 25 Apr 2010 Posts: 870 Location: England
|
Posted: Mon 02 Jan 2012, 06:40 Post subject:
|
|
Hi Master_wrong,
I am not sure that I entirely understand your request or shinobar's reply.
See http://www.murga-linux.com/puppy/viewtopic.php?t=74471 to use seaside's program which loads all sfs files in any specified directory in a single operation.
I have an unusual use in mind if you are able to install all the pets in a single directory using a single command. If shinobar has not already done it, I suspect it would take him, or any expert, only a few seconds to do it.
My regards
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Mon 02 Jan 2012, 07:14 Post subject:
Re: Can we load sfs or pet from script ? |
|
| shinobar wrote: | # sfs_load SOMETHING.sfs
# petget SOMETHING.pet |
OR
| Code: | #!/bin/sh
for x in /path/to/folder/*
do
ext=${x##*.} # extension only
[ "$ext" = "pet" ] && petget $x
[ "$ext" = "sfs" ] && sfs_load $x
done |
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
Master_wrong
Joined: 19 Mar 2008 Posts: 455
|
Posted: Mon 02 Jan 2012, 09:33 Post subject:
|
|
Hi,
Thanks all for the reply, ok i try all the suggestion...
btw...
HAPPY NEW YEAR !!!
_________________ Cluster-Pup v.2-Puppy Beowulf Cluster
http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Mon 02 Jan 2012, 11:45 Post subject:
Yes, we can! Subject description: You, as an American, should really know this... |
|
Hello, Master_wrong,
and a Happy New Year.
I am sure you can do this.
I am using this in my LazY Puppy and so i can run 10 specific sfs files from the menu or similar from a gui. If i do not choose a button (sfs file) inside the gui and leave the gui by "OK" i get another gui (yad) that opens a specific directory to select one of the included files.
I can set the name of the sfs files in the LazY Puppy Preferences GUI. So i can use up to ten other sfs files rather than the pre-specified ones.
Each button or similar menu entry runs a script specially created for the wanted sfs file.
| Code: | #!/bin/sh
if [ -f /usr/sbin/ceelab/lazy-sfs-load/data/sfs-list.rc ];then
. /usr/sbin/ceelab/lazy-sfs-load/data/sfs-list.rc
fi
exec sfs_load $SFSAUDIOMIDIEDIT &
|
Surely "exec..." better should be placed inside "if" and "fi"
$SFSAUDIOMIDIEDIT is specified in the file sfs-list.rc.
| Code: | SFSAUDIOMIDIEDIT="LazY528-Audio-Midi-Edit.sfs"
SFSMEDIAPLAYER="LazY528-AV-Player.sfs"
SFSDEVX4="LazY528-devx4.sfs"
SFSDEVX4GMB="LazY528-devx4-GMB271.sfs"
SFSGRAPHICS="LazY528-Grafik.sfs"
SFSINTERNET="LazY528-Internet.sfs"
SFSLFPC="LazY528-LZ09300-FPC242.sfs"
SFSOFFICE="LazY528-Office.sfs"
SFSTOOLS="LazY528-Tools.sfs"
SFSVIDEOEDIT="LazY528-Video-Edit.sfs"
SFSWINE="LazY528-Wine.sfs"
|
Hope this will be a bit of inspiring you...
RSH
| Description |
|
| Filesize |
70.89 KB |
| Viewed |
359 Time(s) |

|
| Description |
|
| Filesize |
47.86 KB |
| Viewed |
359 Time(s) |

|
| Description |
|
| Filesize |
48.07 KB |
| Viewed |
363 Time(s) |

|
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
|