WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Perl script  (Read 3589 times)

Offline Scooby

  • Newbie
  • *
  • Posts: 27
Perl script
« on: February 11, 2013, 02:28:17 PM »
I want to start Tiny Core micro . only commandline

Automatically run a perl script and then reboot

I was tryin Tiny core with gui to learn but gui didnt start - I boot from ISO on USB stick.

Since I am not really interested in GUI I wondered if there is commandline extension mangement
like sudo apt-get?

Where would you place a script to be executed at startup.

If I get it to work I'm thinkin remaster ISO but thats later.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Perl script
« Reply #1 on: February 11, 2013, 02:58:24 PM »
http://tinycorelinux.net/
Please read core concepts and the wiki.

Offline Scooby

  • Newbie
  • *
  • Posts: 27
Re: Perl script
« Reply #2 on: February 11, 2013, 03:18:14 PM »
yeah I've read up some and tested some

I think I know now how to remaster and where to put startup script
I found tce to download packages from commandline.

I installed perl5.tcz

I run my script but gets message

"The selected directory contains no file!"

When I check the directory there is files? Am I missing any perl module?
I found 81 of em and installed some  but to no success?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Perl script
« Reply #3 on: February 11, 2013, 03:30:16 PM »
Teaching perl programming / troubleshooting perl scripts is really  not the goal of the forum.
If you have a tiny core related question, we can address that.

Offline Scooby

  • Newbie
  • *
  • Posts: 27
Re: Perl script
« Reply #4 on: February 11, 2013, 04:21:16 PM »
Okay I dont want teaching in pearl anyway

the perlscript I was using was calling command below

Code: [Select]
filefrag

this seems not be present in TinyCore

No hits in search or google search in connection with tiny core?
Not found in repo

Is there some commandline utilitys package
« Last Edit: February 11, 2013, 04:27:55 PM by Scooby »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Perl script
« Reply #5 on: February 11, 2013, 04:28:58 PM »
filefrag is in e2fsprogs.tcz.
You really need to learn how to use the tce and apps utilities.

Offline Scooby

  • Newbie
  • *
  • Posts: 27
Re: Perl script
« Reply #6 on: February 11, 2013, 04:44:32 PM »
yep I found it also

But not via tce - it would give me no results on filefrag

Thanks for your patience

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Perl script
« Reply #7 on: February 11, 2013, 05:28:47 PM »
It is a provides, not tag.