I am using the below mentioned code to delete folders from FTP which are older than 500 days. I am using the find command. The find command does not filter the folders as per expectation. The find command traverses through all the folders but does not deletes the files. I referred all other posts...
Just did a 174 commit merge of a feature branch into our develop branch at work. It's the biggest feature merge I've done so far. Scary stuff! (not really, we do proper feature testing)
Is there a way to execute scripts in a shell terminal directly as stdin without heredocuments?
The reason I avoid heredocument is this method considered by many Bash programmersa as archaic and easily conflicting with common shells, and non cosmetic in case of long heredoc strings presented in t...
@Jesse_b Yeah, there are a few things that have defaults that not many seems to know about. Another one is for thing; do ...; done, which will loop over "$@".
@StephenKitt as a hammerless person, I wonder: if it's impossible for you to cast a non-hammer close-vote, would Flagging it be an appropriate measure?
@StephenKitt I don't think so. I mean yes, it is, but for those users who don't have the rep to vote to close. Once you get the rep, you need to vote to close but before you reach it, you can flag.
@terdon I asked my question of Stephen because I'm boggled how Gilles doesn't show up on the top stats pages;I wonder if they have so many hammers that typical close-votes aren't possible any more (assuming they want community review)
so my hope, to maintain my sanity, was that they were flagging instead of "Closing", or I'm just completely wrong again
@StephenKitt a great clarifying question; I'd be a little surprised if a close-vote did not count as a close/review stat, but ... I'm used to being surprised by thing I don't know here
@JeffSchaller I don't know that he reviews much. I don't, for instance. Since I spend so much time on the site, I tend to see most posts directly so I didn't need to review even before becoming a mod. And since being modded, I am leery of the review queues since I usually don't want to hammer stuff closed if the community can deal with them.
That seems an unfortunate side effect of earning a gold hammer; there's a disincentive to cast a vote as it's a larger effect -- so skipping altogether or deciding that it's immediately closeable. Although I suppose there's still candidates for both of those types.
I have a split brain when it comes to "extra" calls like this. I appreciate the efficiency, but 99% of the time, the computer is waiting for me, so I feel less bad giving it something to do.
@JeffSchaller When it's specifically about something like the prompt, I'm one of those people that would be happy with just PS1='$ '... I don't quite get the prompt pimping thing.
I've been having issues with something else. They have something called ebanking here where you can deduct money from your bank account to pay for stuff. I've been using it for stuff. And it stopped working, and the morons in CS keep assuring me it will be working in a day or two.
It's OK. The folks at Yahoo support still haven't figured out what SSL or TLS are. Thankfully their managed to figure out how to replace an expired certificate on their own, only took it being expired for the better part of a month.
The weird thing is, I was able to use that exact method now when there was a problem with another method. I went in, modified it, and that method that they keep telling me, doesn't work, worked!
Maybe the key is to deliberately fail the order using another method. Though that is completely bananas.
@Kusalananda I'm with you; although I'm rather used to seeing my current username, hostname, and $PWD -- for situations where I'm sshin'g and su'ing and 'cd'ing around
It's probably that they are trying too much. Amazon has a foot in basically every type of business available right now, they are probably stretched very thin
And @Jesse_b, it's really not that hard, even in India, to get a purchase method working. Like this e-banking this. I mean, it used to work. With no problem.
@FaheemMitha, Yes. It's just a guess but in my limited experience with acquisitions, generally the goal is to eliminate all employees from the acquired company and just retain their technology
@AaronHall I imagine starting up Python and loading all the modules takes a while. If you started up Python on login, and then just queried it for the prompt (using just bash builtins) over a socket... that'd probably work and be quick.
@AaronHall That goes for any language you don't understand. It is perfectly possible to write clear and easy to understand Perl code. If everyone could just please stop trying to craft "one-liners" with it all the time.
$ time python -c 'print "hello world"'; time perl -E 'say "hello world"'
hello world
real 0m0.017s
user 0m0.010s
sys 0m0.007s
hello world
real 0m0.004s
user 0m0.004s
sys 0m0.000s
Did that a few times, got similar numbers. So Python startup time is ~4x longer.
But I'm doing it on a server that's handling a lot of other things. My first perl run took .2 seconds of real time... in spite of .002 user and .007 of sys
OTOH, if you were to have your Python program open a Unix socket, and then enter a look where it reads one line from it (the CWD) and then writes back one line (the prompt)... I bet your loop would run in under 1ms, and the echo/read on the shell side would keep the total prompt time to well under 10ms.
@JeffSchaller Nah, we'd clearly replace $? with some binary equivalent that if the command doesn't shut down properly we toss the last day or so of $? (like the journal)
@FaheemMitha Not very high in CL. And I'm damaged by C and other similar languages. I know the basics and I'm able to do simple stuff. But getting it to do something that is useful is a bit beyond me. Most tutorials does'nt talk about interfacing with files and the rest of the system.
@Kusalananda I spent some time in 2012 learning CL. It's super cool. But the implementations are a bit lacking. As is the general community infrastructure.
@Kusalananda link; quote: "Strictly speaking, this program does not comply with any C specification for the same reason. But I believe it is reasonably portable."
@AaronHall I did see a question somewhere (probably not on U&L) if it was possible to craft a C program that would compile and run itself just like a script, just by having the correct #!-line in the source code.
@Kusalananda The only problem with Lisp is that skidding feeling you get when all the usual landmarks have been removed. I'm not a fan of the descendants of Algol, but that syntax does make it easier to keep track of where you are.
In Lisp you basically get a pile of parens, all looking exactly alike.