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
Can we load sfs or pet from script ?
-
- Posts: 452
- Joined: Thu 20 Mar 2008, 01:48
Can we load sfs or pet from script ?
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]
Re: Can we load sfs or pet from script ?
# sfs_load SOMETHING.sfs
# petget SOMETHING.pet
# petget SOMETHING.pet
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]
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
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
Re: Can we load sfs or pet from script ?
ORshinobar wrote:# sfs_load SOMETHING.sfs
# petget SOMETHING.pet
Code: Select all
#!/bin/sh
for x in /path/to/folder/*
do
ext=${x##*.} # extension only
[ "$ext" = "pet" ] && petget $x
[ "$ext" = "sfs" ] && sfs_load $x
done
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
-
- Posts: 452
- Joined: Thu 20 Mar 2008, 01:48
Yes, we can!
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.
Surely "exec..." better should be placed inside "if" and "fi"
$SFSAUDIOMIDIEDIT is specified in the file sfs-list.rc.
Hope this will be a bit of inspiring you...
RSH
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: Select all
#!/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 &
$SFSAUDIOMIDIEDIT is specified in the file sfs-list.rc.
Code: Select all
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"
RSH
- Attachments
-
- direct-sfs-load-menu.jpg
- (70.89 KiB) Downloaded 451 times
-
- direkt-sfs-load-gui.jpg
- (47.86 KiB) Downloaded 448 times
-
- lazy-preferences.jpg
- (48.07 KiB) Downloaded 485 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]