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 Tue 21 Oct 2014, 12:47
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 Posts_count   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: 3336
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: 3336
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

_______________________________________________

Edited_times_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: 5753
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_website 
zigbert


Joined: 29 Mar 2006
Posts: 5753
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_website 
broomdodger


Joined: 09 May 2008
Posts: 269
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: 269
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: 269
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: 269
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: 269
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: 3336
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: 5753
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_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_website 
zigbert


Joined: 29 Mar 2006
Posts: 5753
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_website 
Display_posts:   Sort by:   
Page 4 of 9 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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