]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/cli.c
7 #define HANDLE_ERROR if (error_occured) { \
12 int main(int argc
, char **argv
)
14 if (argc
!= 3 && argc
!= 4)
16 printf("\n\tusage: cli <command 1> <command 2> [logfile (default cli.log)]\n");
18 printf("\texample: cli hi14asnoop hi14alist h14a.log\n");
25 SetLogFilename(argv
[3]);
27 SetLogFilename("cli.log");
32 while (!OpenProxmark(0)) { sleep(1); }
35 CommandReceived(argv
[1]);
37 ReceiveCommand(&cmdbuf
);
39 for (int i
= 0; i
< 5; ++i
) {
40 ReceiveCommandPoll(&cmdbuf
);
43 CommandReceived(argv
[2]);