M
Markus S
Hi,
Trying to use Platypus to create an app out of a Perl script. Bu I
can't get the 'Getting Current Working Directory' (ie, cd "$1/.." ) to
work in a Perl script. My minimal Perl script would look this:
#! /usr/bin/perl
# Create content
$content = "This is a test.";
# Save file
$name = "filename.txt";
$namestr = ">" . $name;
open NEWFILE, $namestr;
truncate NEWFILE, 1;
print NEWFILE "$content";
close NEWFILE;
I've tried wrapping the cd into a system call but did not get very far.
If you have anything you can point me at, I'd be very glad.
Wrapping this with Platypus does not produce any error messages but it
does not create the file (or I can't find it).
Thanks.
Markus
Trying to use Platypus to create an app out of a Perl script. Bu I
can't get the 'Getting Current Working Directory' (ie, cd "$1/.." ) to
work in a Perl script. My minimal Perl script would look this:
#! /usr/bin/perl
# Create content
$content = "This is a test.";
# Save file
$name = "filename.txt";
$namestr = ">" . $name;
open NEWFILE, $namestr;
truncate NEWFILE, 1;
print NEWFILE "$content";
close NEWFILE;
I've tried wrapping the cd into a system call but did not get very far.
If you have anything you can point me at, I'd be very glad.
Wrapping this with Platypus does not produce any error messages but it
does not create the file (or I can't find it).
Thanks.
Markus