Find the answer to your Linux question:
Results 1 to 3 of 3
...and man was it hard to figure out how to do it! I kept wanting to input Linux commands. We've been manually downloading streaming audio which is dumped to a ...
  1. #1
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562

    Wrote my first batch file today...

    ...and man was it hard to figure out how to do it! I kept wanting to input Linux commands.

    We've been manually downloading streaming audio which is dumped to a file in Linux, edited and then transferred over to Windows for playback in a radio automation application. I set up everything as cronjobs. Using mpg123, the file is converted from .mp3 to .wav where it awaits retrieval from the Windows machine. After transfer, the file is placed into a directory to be aired later in the day. The Windows scheduler doesn't seem to accept straight commands so I had to create a batch file for it to retrieve the file from the Linux machine via wget. Google sure did come in handy when trying to figure all of it out. After many attempts and failures it now happens automatically!
    Linux Mint + IceWM Registered:#371367 New Members: click here

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I actually just had to convert a batch file, so that I can use it in Linux.

    It seems that batch files accept sloppy and incomplete statements. This seems especially true with if statements. Man, it was difficult figuring how to accomplish the same things in a bash file.

    I then found that I really needed a true sh file, so that I could run it inside of Android. That's a whole 'nother thing!
    Last edited by waterhead; 10-11-2010 at 08:51 PM. Reason: typo
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,072
    Good going, Dan!

    Batch files are just an utter mess! I never did get the hang of them.
    So to knock out a Linux conversion to batch combo... Kudos, brother!
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •