Quotunrecognized command or argument o11/26/2023 Provide an IPv6 zone id in the URL with an escaped percentage sign. Connection reuse can only be done for URLs specified for a single command line invocation and cannot be performed between separate curl runs. You can specify command line options and URLs mixed and in any order on the command line.Ĭurl attempts to reuse connections when doing multiple transfers, so that getting many files from the same server do not use multiple connects and setup handshakes. They will be fetched in a sequential manner in the specified order unless you use -Z, -parallel. You can specify any amount of URLs on the command line. For example, for host names starting with "ftp." curl assumes you want FTP. It then defaults to HTTP but assumes others based on often-used host name prefixes. If you provide a URL without a leading protocol:// scheme, curl guesses what protocol you want. You find a detailed description in RFC 3986. It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS.Ĭurl is powered by libcurl for all transfer-related features. Need to use extra quoting to get the desired effect. Pass command to exec(2) instead of sh -c which reduces the That way, the separate command line arguments stay separate. Tell watch to skip the shell, and to run the command directly. NOTE: You can use set -x and run watch >/dev/null to see the command that the shell actually runs, you'll see there if the quotes actually get passed along to watch. They don't act on the command line when the alias is expanded. The outer quotes just quote the alias when it's defined. It's just that when your alias expands the double-quotes are not quoted. You have two choices:Īdd explicit quotes for the shell that watch starts. So watch ls -l "foo bar" becomes the same as watch ls -l foo bar, and you get a similar problem with squeue. Watch concatenates its command line arguments, joining them with spaces and passes the result as a string to sh -c. I'm sure the solution is some small twist to the other watch question but I don't know what. If I don't use aliases everything is fine. I want run watch on a custom slurm squeue command: $alias squeue_personal='squeue -o "%.18i %.9P %.8j %.8u %.216t %.10M %.6D %R %V %S %Z"'īut this still doesn't work. I need to use quotes, which seem to be stripped by an aliased watch. My questions is similar to the watch question here but with a twist.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |