]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/cli.c
6 #define HANDLE_ERROR if (error_occured) { \
11 int main(int argc
, char **argv
)
13 if (argc
!= 3 && argc
!= 4)
15 printf("\n\tusage: cli <command 1> <command 2> [logfile (default cli.log)]\n");
17 printf("\texample: cli hi14asnoop hi14alist h14a.log\n");
24 SetLogFilename(argv
[3]);
26 SetLogFilename("cli.log");
31 while (!OpenProxmark(0)) { sleep(1); }
34 CommandReceived(argv
[1]);
36 ReceiveCommand(&cmdbuf
);
38 for (int i
= 0; i
< 5; ++i
) {
39 ReceiveCommandPoll(&cmdbuf
);
42 CommandReceived(argv
[2]);