write terminal comand app

Discussion in 'iOS Development' started by Supermeip, May 2, 2010.

  1. Supermeip

    Supermeip New Member

    Joined:
    Feb 27, 2010
    Messages:
    127
    Likes Received:
    0
    Device:
    3G iPod touch
    can someone please help me i have an app that i want to make that will run a comand in terminal, how would i be able to make an app like this in windows and i dont mean to be rude but please just dont say its stupid or no point.
  2. J-Phone

    J-Phone Active Member

    Joined:
    Dec 1, 2009
    Messages:
    4,868
    Likes Received:
    10
    Device:
    iPhone 4 (Black)
    ubuntu then use SDK, btw wrong section
  3. JoeyB

    JoeyB Active Member

    Joined:
    Mar 13, 2009
    Messages:
    1,670
    Likes Received:
    12
    Device:
    iPhone 4 (White)
    Make a .txt file, put the commands inside on seperate lines, if there's multiple commands, then go to File>Save As...> then save it as anything, but put the extension as .BAT, and open it. It executes the commands. Done

    Please Register or Log in to view images

  4. Supermeip

    Supermeip New Member

    Joined:
    Feb 27, 2010
    Messages:
    127
    Likes Received:
    0
    Device:
    3G iPod touch
    how do u use sdk in ubuntu
  5. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    THIS IS NOT WINDOWS...THIS IS UNIX!!!!

    Please Register or Log in to view images



    if you wish to execute a command from an app, use the system() function.
  6. Supermeip

    Supermeip New Member

    Joined:
    Feb 27, 2010
    Messages:
    127
    Likes Received:
    0
    Device:
    3G iPod touch
    im a super nube at app making so can someone mabt explain it a little and srry for wrong section
  7. JoeyB

    JoeyB Active Member

    Joined:
    Mar 13, 2009
    Messages:
    1,670
    Likes Received:
    12
    Device:
    iPhone 4 (White)
    Hmm.. In his post it says, "in windows," so... :|
    ^_^ >_<
  8. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    I assume the OP wants to compile an iPhoneOS app in a Windows environment. He wants the app itself to have the system execute commands. iPhoneOS would be considered a "descendant" of UNIX. Batch files are for Windows.

    edit: he also made a reference to "terminal", which is presumably MobileTerminal on the device.
  9. JoeyB

    JoeyB Active Member

    Joined:
    Mar 13, 2009
    Messages:
    1,670
    Likes Received:
    12
    Device:
    iPhone 4 (White)
    Erm.. Yeah, I also just noticed he said terminal, which is unix.. (And yeah I know bath files are on windows, I thought he meant something else)
  10. Supermeip

    Supermeip New Member

    Joined:
    Feb 27, 2010
    Messages:
    127
    Likes Received:
    0
    Device:
    3G iPod touch
    BINGO

    many someone can just do it for me
    the comand is
    -i ffmpeg "then you can chose the location of the input file) (chose extention (avi mpg or mp4) of output)
    example for j.mpg in var convert to j.mp4 it would be
    -i ffmpeg /var/j.mpg /var/j.mp4

Share This Page