Can we load sfs or pet from script ?

What features/apps/bugfixes needed in a future Puppy
Post Reply
Message
Author
Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

Can we load sfs or pet from script ?

#1 Post by Master_wrong »

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
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: Can we load sfs or pet from script ?

#2 Post by shinobar »

# sfs_load SOMETHING.sfs
# petget SOMETHING.pet
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

Jasper

#3 Post by Jasper »

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

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Re: Can we load sfs or pet from script ?

#4 Post by sc0ttman »

shinobar wrote:# sfs_load SOMETHING.sfs
# petget SOMETHING.pet
OR

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]

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#5 Post by Master_wrong »

Hi,
:D
Thanks all for the reply, ok i try all the suggestion...

btw...
HAPPY NEW YEAR !!!
Cluster-Pup v.2-Puppy Beowulf Cluster
[url]http://www.murga-linux.com/puppy/viewtopic.php?p=499199#499199[/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Yes, we can!

#6 Post by RSH »

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: 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 &
Surely "exec..." better should be placed inside "if" and "fi"

$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"
Hope this will be a bit of inspiring you...

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]

Post Reply