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 26 Mar 2019, 06:45
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Want to use get_java script as a benchmark
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
puppy_apprentice


Joined: 07 Feb 2012
Posts: 294

PostPosted: Thu 31 Jan 2019, 14:32    Post subject:  Want to use get_java script as a benchmark  

Want to use get_java script as a benchmark to test all my computers.

I've added those lines in red to the get_java script:
Quote:
function java_make_sfs() { # Make the new sfs file
ts=$(date +%s%N)
...
echo $((($(date +%s%N) - $ts)/1000000)) > /root/java_sfs_finish.txt
return $RTNCD
}


But java_sfs_finish.txt don't exist in /root.
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 949
Location: Staffordshire

PostPosted: Fri 01 Feb 2019, 13:37    Post subject:  

Does get_java actually work for you? When I tried it the URLs seem out of date, so the script never completes.

Code:
ERR    (397) err:=1, wget failed to get package information :: [get_java_version_and_download_url] [/usr/sbin/get_java]


Running the function on its own works ok
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 294

PostPosted: Fri 01 Feb 2019, 14:41    Post subject:  

Downloaded manually.

https://www.java.com/en/download/linux_manual.jsp
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 949
Location: Staffordshire

PostPosted: Fri 01 Feb 2019, 15:34    Post subject:  

Duh, I forgot about using a downloaded package.

Anyway, I moved the line further up (to 611) as I think it is exiting the function early if certain conditions are met.
Code:
sync
     rm -fr $EXPAND_BASE_DIR
     move_tmp_package_to_destination
     echo $((($(date +%s%N) - $ts)/1000000)) > /root/java_sfs_finish.txt
     FDBK10="$(eval_gettext "Oracle \$JAVA_PACKAGE_NAME built as squash file package.")"


It works now and I get the file written to /root/.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0441s ][ Queries: 12 (0.0050s) ][ GZIP on ]