How to get remote script to execute through sudo via expect script

I’ve seen a number of other posts that are so tantalizingly close to my issue; but I still can’t get this to work.

I want to be able to run ssh into a server, sudo to another account and then run complex shell scripts.

The script I’m running now actually shows it sending the command to run the actual test script but, the one line in it never runs (ie echo “Hello” > /tmp/out).

The target and client os are both AIX 7.1.00

I’m at the end of things to try.

Any suggestions would be awesome!


set user roywalker11 set host sea1a2pappu248 set pass xxxxxx set suto cwowdev1

set timeout 10 exp_internal 0

spawn /usr/bin/ssh $ user@$ host expect { -glob “corp:” { send “sudo su – $ suto\r” expect { -glob “$ suto” { send “$ pass\r” expect { -glob “48:” { send “/tmp/rcwt.ksh\r” } } } } } }

Should you expect unexpected values from external APIs?

Lets say you are coding a function that takes input from an external API MyAPI.

That external API MyAPI has a contract that states it will return a string or a number.

Is it recommended to guard against things like null, undefined, boolean, etc. even though it’s not part of the API of MyAPI? In particular, since you have no control over that API you cannot make the guarantee through something like static type analysis so it’s better to be safe than sorry?

I’m thinking in relation to the Robustness Principle.

Can I expect problems after entering Schengen through main destination but leaving from another state?

I have been issued my first Schengen visa (7 days) so please excuse my lack of understanding. Visa label says it is valid for ESTADOS SCHENGEN.

I applied via Spain as I am to attend a conference there. I will most certainly be entering the Schengen area from Barcelona. I will also be spending three nights in the city, so thus the most amount of time during my visit to the Schengen area.

From there I am to proceed to the Netherlands in order to attend a meeting at my company’s HQ. I will spend two nights there. The final night I wish to spend in Paris before exiting the Schengen area from Paris.

My concern is the following: My application for the Schengen visa does not mention onward travel to the Netherlands or France. The air ticket I had submitted when applying also had me exiting from Barcelona on the final day.

I have just booked my tickets where by I enter the Schengen area through Barcelona and exit through France on the specified days. I’m wondering if I might run into any troubles with immigration in Paris on the way out. I’m also a bit worried due to the fact that I am from a country that many would consider high-risk for not complying with visa conditions. (Pakistan).

Any help in clearing up these doubts will be much appreciated. I still have a month to go before I travel so there is ample time to clear up my itinerary should this cause any problems for me.

10 Things That You Never Expect On Parallel Profits.

Typically, an SEO campaign takes a minimum of 6 months to begin to show good results. This is an approximation – if the market is particularly competitive with many well-optimized websites competing for the same keyphrases it may take longer. Unlike on-site optimization it is not predominantly a one-time task – it is an ongoing process that must continually be carried out if rankings are to be gained and retained. The reason for this is that the landscape in which SEO is conducted is not static. Other competitor websites will also be engaged in SEO campaigns; new websites will be launched competing for the same keyphrases; existing websites will add new content or gain new in-bound links. And it’s not only the competition you need to worry about. The major Search Engines regularly change the algorithms they use to determine website rankings.

Anticipation. Companies should define response plans before a threat actually arises. McDonald’s offers a strong case for this type of preparation: when the company encouraged its customers to use the hashtag #McDStories” to tweet their positive experiences with the brand, the campaign was hijacked by customers who posted derogatory tweets. McDonald’s quickly pulled the hashtag; it was promoted for less than two hours. Within an hour of pulling #McDStories, negative tweets about the company decreased from 1,600 per hour to a few dozen per hour. According to a statement from McDonald’s social-media director, With all social-media campaigns, we include contingency plans should the conversation not go as planned.” 3 Lubin, McDonald’s Twitter campaign goes horribly wrong,” , January 24, 2012.

mocha test with multiple overlapping expect

Fairly new to writing tests. I am curious to know if there is a convention/standard for short is better or more informative is better?

Given A)

doSomethingWithPromise({}) .then(mqResponse=>{ //MonqadeResponse     expect(mqResponse);     done(); }).catch(mqError=>{ //MonqadeError     expect(mqError);     expect(mqError);     expect(mqError.code).to.eq('MongooseValidationError');       done() }) 

Or B)

.catch(mqError=>{ //MonqadeError     expect(mqError.code).to.eq('MongooseValidationError');       done() }) 

Where the expects in A overlap but will catch where the failure occurs.

When can one expect $\mu=0$?

What is special about $ \mathbb{Z}_p$ -extensions which are motivic to ensure that their $ \mu$ invariant is zero? Is there a simple conceptual reason.

Here are some examples.

  1. Let $ F$ be a totally real field and $ F^{cyc}$ the cyclotomic $ \mathbb{Z}_p$ extension. The $ \mu$ invariant of the $ p$ -Class group tower is conjectured to be zero. This is known when $ F$ is a abelian.
  2. There is an analogue for quadratic imaginary fields, let $ K$ be a quadratic imaginary field in which a prime $ p$ splits into $ \mathfrak{p}\mathfrak{p}^*$ . Let $ K_{\mathfrak{p}}^{\infty}/K$ be unique $ \mathbb{Z}_p$ -extension which is unramified outside $ \mathfrak{p}$ and $ K_{\mathfrak{p}^*}^{\infty}/K$ be unique $ \mathbb{Z}_p$ -extension which is unramified outside $ \mathfrak{p}^*$ . The $ \mu$ invariants of these $ \mathbb{Z}_p$ extensions are known to be zero (except for $ p=2,3$ ). On the other hand, there are infinitely many other $ \mathbb{Z}_p$ -extensions. These $ \mu$ invariants in general are not expected to vanish. These two special $ \mathbb{Z}_p$ -extensions come from division points on elliptic curves with complex multiplication.

There are many non-abelian analogues. Can one simply expect that a version of $ \mu=0$ should hold whenever there is a motive involved?