I need some persistent storage across spot terminations.  My approach to solve the problem is    Write a startup script that attaches and mounts the persistent volume  Snapshot this state and register a private AMI Launch Spot instances based of the private AMI   searches in this forum [] suggests this is the correct procedure  My startup script:  #!/bin/sh  echo "executing startup script"  # attach the EBS volume to this machine aws ec2 attach-volume --volume-id vol-7bef1d96  --instance-id  $(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id ) --device /dev/xvdg  sleep  10  # mount the attached EBS volume echo "mounting the  attached volume" sudo mount /dev/xvdg1 /home/ubuntu/persistent/  #run script echo "starting the  dummy program in background" python2 persistent/dummyProgram.py &amp;   The script works perfectly if executed manually. However when it is executed by cron the  only the echo statement are executed  the crontab task is  @reboot /path/to/startupScript.sh   How do I solve this problem?  The corrected  crontab entry reads :  USER=username PATH=content of $PATH @reboot /path/to/startupScript.sh
This is a  about using cron &amp; crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted.
Can the most important information of reputation audit appear first? I regularly find myself having to scroll to the bottom of the reputation audit to find all the good stuff that appears last. On my computer this is a single key press, but on my mobile it takes 30 seconds of scrolling. Lord alone knows how long it would be for Jon Skeet!  Since the principles of good user experience suggest putting the most important information first, why not do the same here? I never look at my first 5 days of rep gathering. But I often look at the current day, the true rep, days with 200 rep (hunting legendary badge!), trigger recalc etc. Pretty please, can we have it up top? Can I disown my heir? Everything was perfect. I have a good and young ruler, who has passed on some good genes to his sons. I also had a lot of spare lands, so I could make my heir a duke and doubly count when he came of age.  My mistake was to marry him off to some scheming wench. I knew it would end like this, but her stats were just too great to resist!  Anyway, a few years down the road, and my trusty spy master lets me know that my beloved son is looking to usurp me. Not cool! I demand that he end the plot, and decide to see how this develops.  Shortly thereafter, he suddenly dies (not by my hand — likely the wife is the culprit). My second eldest son becomes my new heir and favourite, however all the titles are inherited by my clubfooted grand daughter aged two. Curses!  Now, what I really wanted, was to imprison and disown my traitorous son followed by swift justice of the axe. Not sure what my other vassals would think of that idea, but I had a just reason for imprisonment at least.  Option number two, is to start plotting for my dearly beloved grand daughters untimely demise, but I'm not sure how that would work out either.  The situation is this. I'm young (40ish) and well-liked. I have a new heir, but I'd prefer to keep my lands for myself and give him the ones of the previous heir — one duchy and two counties currently held by my grand daughter. The duchy can be revoked free of charge, as I hold a claim to it. She has no siblings. I am da King. I have limited crown authority, but can bump it up to medium if it suits me.    So my questions to you are as follows:   Is it possible to disown a son, considering I have just cause for imprisonment? An execution would of course settle the deal, but my other vassals would probably find me "cruel". Is it possible to plot against a character which is not yet of age? What would happen if she suddenly died with no heir? Would all her titles be returned to the king or duke (i.e. me)?   EPILOGUE I had savegames before and after, so I decided to test a few things.   I could imprison my quisling of a son. I could also seize all his titles and banish him from my lands, but he would remain an heir, even if he wasn't officially a prince. I guess I could have let him rot in jail, as it seems prisoners often die in custody, but it would be a risky bet. After the unfortunate death of my old heir, it seems some strange rules apply regarding the remaining titles. The dukal title I could simply revoke for free (although at a opinion penalty from the duchess). Should she die today, one of the counties would be inherited by her younger sister, and the other would be inherited by me.   I found this to be an interesting development: Turns out my new heirs wife suddenly died. Who did he marry, other than the same scheming hag who presumably killed off his brother, and made an attempt at me? By a suspicious coincidence, I died not very long after. Such is the effects of the deceitful and ambitious traits combined with a really dope intrigue stat. ;) I started learning Bash a couple of days ago.  I'm trying to obtain an exit status of grep expression into a variable like this:  check=grep -ci 'text' file.sh   and the output that I got is   No command '-ic' found   Should I do it with a pipe command? How do I make an HTML text box show a hint when empty? Radius of Convergence of power series of Complex Analysis I have come across the following few questions on past exams papers.. I know how to solve these type when it is of the form $a_nz^n$ but don't have a clue what to do with these. Any help would be greatly appreciated!  (i) $\displaystyle\sum_{n=0}^\infty \bigg(\dfrac{1}{2n}\bigg)z^{3n}$.  (ii) $\displaystyle\sum_{n=0}^\infty(2^n+i)(z-i)^n$.  (iii) Show that the radius of convergence of $\displaystyle\sum_{n=0}^\infty z^{n!}$ is $1$ and that there are infinitely many $z \in \mathbb{C}$ with $|z|=1$ for which the series diverges. I'm an Indian National. I have a Type C Schengen Business Visa which is valid from 26-11-2015 to 26-11-2020. I received it when I intended to travel to Netherlands, although I have not used it.   When I applied for a spouse endorsement, the passport on which the visa is stamped was cancelled and a new passport was issued.  Now, I plan to travel to Italy on business from July 8th to 16th.    Can travel with the same visa in old passport, or should I cancel the existing visa and apply for a new one?  I contacted the Netherlands Embassy call center (not VFS Netherlands) which responded that I can use it without any issues. However, they have not confirmed it by email.   I asked about any immigration issues in Italy and was told me that, if I have a valid itinerary and invitation letter from the office, there should be no problem. I was also told that Italian immigration authorities are able to contact the Dutch, if necessary.   I emailed the Italian Embassy in Mumbai (visa.mumbai@esteri.it) and await its response. Proving that $\frac{1}{1\cdot 2} + \frac{1}{2\cdot 3} + \frac{1}{3 \cdot 4} +\ldots + \frac{1}{n(n+1)} = \frac{n}{n+1}$ How would we go about proving that $$\frac{1}{1\cdot 2} + \frac{1}{2\cdot 3} + \frac{1}{3 \cdot 4} +\ldots +\frac{1}{n(n+1)} = \frac{n}{n+1}$$ What is a tty, and how do I access a tty? I am so confused by, for example, "People love their life or lives." I have created two files:  sample.txt and sample.txt  (the second file contains some hidden characters, e.g. a space). How can I remove the latest modified file? I'm using Linux. I never want my PNGs to be interlaced. So I wish I could set a bunch of option defaults in the application so that I am saving time when outputting a lot of images as PNG over the course of a day working in Photoshop.  Does anyone know if this is possible in Photoshop without using Actions OR the Save-for-Web option? Minimize the sum of distances between two point and a circle I would like to enable the root account on my Ubuntu installation.  I realize the security implications of this. Unidentified address in Gmail Many times, when I copy&amp;paste an email address into the "To" field in a Gmail message, it refuses to send the email, saying that “the address has not been identified”. This is very frustrating. Is there any solution other than just manually typing the address? Going to Pakistan in 3 weeks time but my NICOP is expired and my son's hasn't arrived yet My NICOP is expired and I have already booked a flight to Pakistan via Qatar Airways. My wife has a valid NICOP card but my 5 years old child  has never had a NICOP or any other Pakistani ID card other than the British passport. I have made an appointment for next Monday to renew my NICOP and apply for my child's new NICOP card. My question is, what if the cards of my child and mine don't arrive in time, can we still travel to Pakistan, given that we have the receipts as a proof of application? This is purely a curiosity, but I'm fascinated by mid-word pluralization, even if the word in question is a compound word.  For example, passersby or standersby.  No others have occurred to me. Can you provide other examples, or a link to a resource that enumerates them?  I'm particularly interested in compounds that do not include spaces or hyphens. Deciding whether two metrics are topologically equivalent in the space $C^1([0,1])$ Consider the space $C^1([0,1])$ and the function $d:C([0,1])\times C([0,1]) \to \mathbb R$ defined as $d(f,g)=|f(0)-g(0)|+sup_{x \in [0,1]}|f'(x)-g'(x)|$. Decide whether the metrics $d$ and $d_{\infty}$ are topologically equivalent in $C^1([0,1])$ (where $d_{\infty}=sup_{x \in [0,1]}|f(x)-g(x)|)$  My attempt at a solution:  If two metrics are topologically equivalent, then they have the same convergent sequences. Honestly, I couldn't do anything. I am trying to define a sequence of functions $\{f_n\}_{n \in \mathbb N}$ such that $f_n \to f$ in, for instance, $(C^1([0,1]),d)$ but $f_n \not \to f$ in $(C^1([0,1]),d_{\infty})$. Could it be this two metrics are topologically equivalent? If this is the case, how could I prove it? If not, I would appreciate any hint to find an adequate sequence of functions that works for what I am trying to prove. If $\gcd (a,b) = 1$, what can be said about $\gcd (a+b,a-b)$? If someone else is booking international ticket for me using his credit or debit card, does he need to be present physically at the time of check-in?   Suppose I am coming back from Singapore to my home country and my ticket is booked by my friend for me, who lives in my home country. Do airlines in Singapore ask for the person to be present physically to check in? A generic list of anonymous class In C# 3.0 you can create anonymous class with the following syntax  var o = new { Id = 1, Name = "Foo" };   Is there a way to add these anonymous class to a generic list?  Example:  var o = new { Id = 1, Name = "Foo" }; var o1 = new { Id = 2, Name = "Bar" };  List&lt;var&gt; list = new List&lt;var&gt;(); list.Add(o); list.Add(o1);   Another Example:  List&lt;var&gt; list = new List&lt;var&gt;();  while (....) {     ....     list.Add(new {Id = x, Name = y});     .... }