Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error when trying example #4

Open
buzzbo opened this issue Feb 2, 2015 · 8 comments
Open

Syntax error when trying example #4

buzzbo opened this issue Feb 2, 2015 · 8 comments

Comments

@buzzbo
Copy link

buzzbo commented Feb 2, 2015

When I run...

 $ mkcast Terminal 10 -c reset

...output:

/usr/local/bin/mkcast: line 54: 1776/2-/2: syntax error: operand expected (error token is "/2")
/usr/local/bin/mkcast: line 55: 952-: syntax error: operand expected (error token is "-")
Wrong option: Cannot parse integer value '-y' for -x
usage: byzanz-record [OPTIONS] filename
   byzanz-record --help
@tckmn
Copy link
Owner

tckmn commented Feb 2, 2015

Are you sure you have a window open with the title "Terminal"?

@buzzbo
Copy link
Author

buzzbo commented Feb 3, 2015

OK I didn't realize we needed an existing terminal with a title. It appears to have been successful (no errors) but where is the gif file?

@tckmn
Copy link
Owner

tckmn commented Feb 3, 2015

It's saved as out.gif in the directory from which you run it.

@buzzbo
Copy link
Author

buzzbo commented Feb 3, 2015

yeah...I don't find out.gif in the current directory.

@tckmn
Copy link
Owner

tckmn commented Feb 3, 2015

Sorry, the example was outdated (-c no longer exists). Try:

$ mkcast Terminal 10

or

$ newcast

@buzzbo
Copy link
Author

buzzbo commented Feb 3, 2015

OK I'm in Mint 17.1 with mate and so I replaced gnome-terminal with mate-terminal which appears to progress, but I get this output in the original window like 'kill' was not used correctly:

Usage:
 kill [options] <pid> [...]

...etc

@comster
Copy link

comster commented Feb 3, 2015

On ubuntu 14.04

mkcast$ ./mkcast Terminal 10 -o out.gif
./mkcast: line 59: 2340/2-/2: syntax error: operand expected (error token is "/2")
./mkcast: line 60: 1440-: syntax error: operand expected (error token is "-")
mkcast$ sudo ./newcast

The last one opens a terminal, but seems to return right away. No out.gif

EDIT: installing all the deps fixed this for me, on ubuntu:

sudo apt-get install wmctrl byzanz -y

@mrchimp
Copy link

mrchimp commented Feb 14, 2015

I'm getting this same error in Terminator on Xubuntu.

It seems that $ww, $wh, $wx and $wy are empty/undefined when using newcast.

I think this might be related to #10 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants