WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Run App in terminal  (Read 3513 times)

Offline alifatemi1358

  • Newbie
  • *
  • Posts: 2
Run App in terminal
« on: August 30, 2015, 12:55:37 PM »
Hi my friends,
First, Excuse me for bad English.
I'm new to linux and newer to very nice "Tiny Core" OS.

I develop a simple App in ubuntu that print string in terminal.

My App code is:

#include <stdio.h>
int main()
{
        printf("\nTest String");
        return 0;
}

I'm confused completely how to run output of above code in Tiny Core. I search many hour in net but yet I cant execute it. When I run it in a terminal in ubuntu it run correctly but when I run it in Tiny Core it show error message: Permission denied.

Please help me,
How I install and run my App in Tiny Core? What is tcz file? How I put my App in tcz file? I can't find any clearly help that explain it.

Thanks a'lot.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Run App in terminal
« Reply #1 on: August 30, 2015, 01:24:11 PM »
Did you try to run your app with the format "./myapp"?

Did you try to run your app as root?

See the extensions section of the wiki for how to make a tcz extension of your app.

Offline alifatemi1358

  • Newbie
  • *
  • Posts: 2
Re: Run App in terminal
« Reply #2 on: August 30, 2015, 01:37:33 PM »
Thanks for your reply.
I run app with ./ and run it with root user but error occured again. Note that I run it in ubuntu successfully.

Thanks gain

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Run App in terminal
« Reply #3 on: August 30, 2015, 02:43:12 PM »
Really, this is not a teach me Linux forum.
chmod +x myapp