What does Some(string.!!) mean in Scala?

Viewed 2096

I have

val str = s"""/bin/bash -c 'some command'"""
job = Some(str.!!)

It is meant to execute the bash command I assume.

Can someone explain this syntax? Googling for '.!!' doesn't help much neither does 'dot exclamation exclamation' so I hope someone can explain this one and/or point me to the doc.

The job doesn't run and I'm trying to debug the code, but when i put this in a

try {
   command = Some(str.!!)
} 
catch { 
case e:Exception => 
  println(e.toString)
}

e is actually not an Exception for some reason... Trying to figure what this really does and how to find what is happening.

1 Answers
Related