Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5933075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:55:22+00:00 2026-05-22T14:55:22+00:00

I am trying to make a simple command line tool in Xcode, that will

  • 0

I am trying to make a simple command line tool in Xcode, that will allow me to make a tar.gz out of a specific folder. I want to see if i can make a program to autorun the command line, instead of typing it in every time i want to make a tar.gz out of something.

int main (int argc, const char *
argv[]) {

// insert code here…

tar czvf SealTeamSix.tar.gz /Users/mdonovan14/Blah

return 0;
}

I understand that i am not setting this up right. How would i go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:55:23+00:00Added an answer on May 22, 2026 at 2:55 pm

    You’d be better off using Automator to create a script that runs that snippet of shell script. Do the following:

    1. Launch Automator.
    2. Choose the Application template.
    3. Drag a Run Shell Script action into the work flow.
    4. Paste your script into text field.
    5. Save your new application, giving it a useful name.
    6. Switch to the Finder and run your app.
    7. Profit!

    As it is, you’re trying to mix shell scripting into a C program. You can certainly run shell scripts from C using the system() function, but using Automator here as described above is a much friendlier process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a batch file that executes a simple command: shutdown -h
I'm trying to make an app that will respond to your command when inserted.
I am trying to make a simple command line client for accessing shares via
I'm trying to make a simple C# web server that, at this stage, you
I'm trying to make a simple program that continually displays and updates a label
I'm trying to make a simple application in C# that allows me to kill
I’m trying to make an über-simple (single-character) prompt that gives me as much information
I am trying to validate command line input to an Enum that I've defined,
I'm trying to make a post-commit script that will, when I push changes to
I'm trying to make a simple blackjack program. Sadly, I'm having problems right off

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.