How can I use curl with a file descriptor for better performance? or Is there a way to handle curl us

18 Replies, 957 Views

Man, I feel you on the temp file clutter. For curl using file descriptor, try:

```bash
exec 3<> myfile.txt
curl -T /dev/fd/3 http://example.com
```

Speed’s the main win, but it’s also about elegance. Fewer moving parts == fewer bugs.

If you’re scripting, this is way more robust than `mktemp` nonsense.

Messages In This Thread



Users browsing this thread: 1 Guest(s)