Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 23:25
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Pschedule 1.1.5 - Task on time
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 9 [130 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Author Message
Frank Cox

Joined: 01 Nov 2009
Posts: 381

PostPosted: Mon 20 Sep 2010, 01:19    Post subject: Re: Ver 8 won't load  

TIA[/quote]So , you installed the Pshcehule pet in the main post, and it still shows version 0.7 ?
Code:
# pschedule -v
Pschedule 0.8


To play a song you can use the builtin player. I don't remember if it is Aqualung or Pmusic. Aqualung "sda1/documents/my music/some-tune.mp3" should do the job.


Sigmund[/quote]

Yes , I installed the pet and when I open pschedule it still said .07 even after reboot. I will check it in terminal when I get back to that machine.
BTW Aqualung is the default but I want to run it with VLC. Do I need to make VLC the default?
Thanks
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3437
Location: Ontario

PostPosted: Wed 06 Oct 2010, 18:43    Post subject: bug report-pschedule.8  

Bug report

There is a misspelt word. It should be Wednesday instead of Wedensday.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3437
Location: Ontario

PostPosted: Wed 06 Oct 2010, 19:53    Post subject: tip to record audio  

Here's a tip to record audio to a partition where you have lot of empty space.

I store potential commands in NoteCase program.
Code:

cd /mnt/sda5 && arecord -d 5200 -f cd -D hw  out90.wav
cd /mnt/sda5 && arecord -d 3600 -f cd -D hw  out1.wav
cd /mnt/sda5 && arecord -d 7200 -f cd -D hw  out2.wav
cd /mnt/sda5 && arecord -d 10800 -f cd -D hw  out3.wav
cd /mnt/sda5 && arecord -d 14400 -f cd -D hw  out4.wav
cd /mnt/sda5 && arecord -d 20000 -f cd -D hw  out5.wav
cd /mnt/sda5 && arecord -d 21600 -f cd -D hw  out6.wav

The command sets the destination and then begins a recording
from 90 minutes to 6 hours.
I choose the line I need and paste it into pschedule.

I check that the schedule is correct with the terminal command
Code:
crontab -l
to get a list of jobs to be performed.
Code:
killall arecord
to kill the recording process (but wav file
that has been created will still remain).

After the recording is made , I change the name of the resulting file
so that I don't accidentally overwrite a previous recording in future
recordings.

________________________________________________________

Edit: The newest precord works with pschedule. See

http://murga-linux.com/puppy/viewtopic.php?search_id=1629468889&t=49907

_______________________________________________

Last edited by don570 on Tue 12 Oct 2010, 13:54; edited 4 times in total
Back to top
View user's profile Send private message 
Frank Cox

Joined: 01 Nov 2009
Posts: 381

PostPosted: Wed 06 Oct 2010, 22:55    Post subject: Pschedule  

I finally got Pschedule to work but prefer the command line.

Type crontab -e and then hit control a to open the menu.

Type in the minutes hour etc.
No path to the program is needed. For instance I prefer vlc to aqualung so I type vlc /root/reminders/sometune.ogg

Then save as in the menu and exit.
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5811
Location: Valåmoen, Norway

PostPosted: Fri 08 Oct 2010, 13:57    Post subject: Re: bug report-pschedule.8  

don570 wrote:
Bug report

There is a misspelt word. It should be Wednesday instead of Wedensday.

Got it

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5811
Location: Valåmoen, Norway

PostPosted: Wed 13 Oct 2010, 14:57    Post subject:  

Version 0.9
See main post

Changelog
- Free resizing of main window.
- Bugfix: Edit task adds another #
- Bugfix: Syntax error - Wedensday (thanks to don570)

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
broomdodger


Joined: 09 May 2008
Posts: 271
Location: Santa Cruz, CA

PostPosted: Wed 20 Oct 2010, 20:28    Post subject:  

Pschedule 0.9
First time I have looked at Pschedule.
It looks great, similar to cronnix on the mac.
I have some crontabs already working.
Selecting one and clicked "Run", nothing happened!
But it works fine when triggered by crond.
Am I using "Run" wrong?
--ALSO--
Pschedule is not smart (yet?) about commented ("#") schedules, but I suppose that is on your todo list.
-Bill
Back to top
View user's profile Send private message 
broomdodger


Joined: 09 May 2008
Posts: 271
Location: Santa Cruz, CA

PostPosted: Wed 20 Oct 2010, 21:44    Post subject:  

More info:
Quirky 1.3

0 13 * * * urxvt -g 64x9+0+0 -e vi /root/my-documents/note.txt

At 1pm each day open a console of size 64x9 with vi displaying the file note.txt

It works fine with crond, but from the "Run" button.

-Bill
Back to top
View user's profile Send private message 
broomdodger


Joined: 09 May 2008
Posts: 271
Location: Santa Cruz, CA

PostPosted: Thu 21 Oct 2010, 22:17    Post subject: pschedule more info  

This is a listing of my test crontab:

185119 ~# crontab -l
# /etc/init.d/start_cron
# /var/log/messages
# /var/spool/cron
# minute hour day month weekday command
# 43 1 12 2 4
# 43 1 12 Feb Thu
# * * 12 Feb *
# 0-59 0-23 1-31 1-12 0-7 0=7=Sun

0 13,21 * * * urxvt -g 64x9+0+0 -e vi /root/my-documents/note.txt
0 13,21 * * * urxvt -e vi /root/my-documents/note.txt
0 13,21 * * * /usr/bin/urxvt -e vi /root/my-documents/note.txt
0 13 * * * /usr/bin/urxvt -e vi /root/my-documents/note.txt
##*/2 * * * * urxvt -g 64x9+0+0 -e vi /root/my-documents/note.txt

185124 ~# pschedule

Message from first test:
0 13,21 * * * urxvt -g 64x9+0+0 -e vi /root/my-documents/note.txt
grep: invalid option -- 'g'
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

Message from second test:
0 13,21 * * * urxvt -e vi /root/my-documents/note.txt
grep: 10:urxvt: No such file or directory
grep: /root/my-d...: No such file or directory

Message from third test:
0 13,21 * * * /usr/bin/urxvt -e vi /root/my-documents/note.txt
grep: 11:/usr/bin/urxvt: No such file or directory
grep: /...: No such file or directory

Message from fourth test:
0 13 * * * /usr/bin/urxvt -e vi /root/my-documents/note.txt
grep: 12:/usr/bin/urxvt: No such file or directory
grep: /...: No such file or directory

This time I selected the fourth item, only opened the edit panel, closed it and quit:
0 13 * * * /usr/bin/urxvt -e vi /root/my-documents/note.txt
185949 ~# pschedule
/usr/local/pschedule/func_human_to_cron: line 40: [: : integer expression expected

Of course, only one is active at a time, except for this manual test.
-Bill
Back to top
View user's profile Send private message 
broomdodger


Joined: 09 May 2008
Posts: 271
Location: Santa Cruz, CA

PostPosted: Thu 21 Oct 2010, 22:48    Post subject:  

I edited the file (line numbers at the start of line):
/usr/local/pschedule/func_human_to_cron

39 if [ "$MINUTE" = "00" ]; then MINUTE="0"; fi
40 if [ "$MINUTE" \> "0" ] && [ "$MINUTE" \< "10" ]; then MINUTE=`echo "$MINUTE" | tr -d 0`; fi
41 if [ "$HOUR" = "00" ]; then HOUR="0"; fi
42 if [ "$HOUR" \> "0" ] && [ "$HOUR" \< "10" ]; then HOUR=`echo "$HOUR" | tr -d 0`; fi
43 DAY=`echo "$DAY" | tr -d .`

Tested with this:
02 13 * * * /usr/bin/urxvt -e vi /root/my-documents/note.txt

The "Edit" button did not leave an error message,
and parsed the string as: 2 13 * * *
Back to top
View user's profile Send private message 
broomdodger


Joined: 09 May 2008
Posts: 271
Location: Santa Cruz, CA

PostPosted: Fri 22 Oct 2010, 01:33    Post subject: "Run" now works for me  

Another guess, and the "Run" button now works.
Edit to line 2, adding quotes around $TREE (grep "$TREE")
Because there are spaces in the command string.

/usr/local/pschedule/func_run

1 #! /bin/bash
2 TREE=`cat /tmp/pschedule-treeitems | grep "$TREE" | cut -d "|" -f 3 | cut -c 2-` #jake_take

-Bill
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3437
Location: Ontario

PostPosted: Sat 23 Oct 2010, 11:36    Post subject: verification of Broomdodger  

Code:
urxvt -g 64x9+0+0 -e vi /root/my-documents/note.txt


In lucid Puppy it didn't work when I clicked 'Run' button.

I'll try the fix.

Edit: Oops! It does work. I forgot to click on the command to
make sure it was highlighted. Then click on "Run' button.


________________________________________________________
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5811
Location: Valåmoen, Norway

PostPosted: Thu 04 Nov 2010, 13:56    Post subject:  

I have added the fix from broomdodger, and uploaded a new pet.
Thank you for helping!!!


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Thu 04 Nov 2010, 15:25    Post subject:  

zigbert wrote:
I have added the fix from broomdodger, and uploaded a new pet.
Thank you for helping!!!


Sigmund
You need to fix/update the URL.
_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5811
Location: Valåmoen, Norway

PostPosted: Thu 04 Nov 2010, 15:32    Post subject:  

abushcrafter wrote:
You need to fix/update the URL.
Done Smile
_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 4 of 9 [130 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0896s ][ Queries: 13 (0.0078s) ][ GZIP on ]