Skip to content

Instantly share code, notes, and snippets.

@briankohles
Created February 2, 2014 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briankohles/8763800 to your computer and use it in GitHub Desktop.
Save briankohles/8763800 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $q = CGI->new();
my $appleTv = 'appletv.local';
my $file = $q->param('file');
my $airplayCmd = qq*/usr/bin/airstream -o $appleTv "$file" &*;
print "$airplayCmd";
exit;
`$airplayCmd`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment