A
A
andrejfomenko2019-06-22 13:39:41
virtual box
andrejfomenko, 2019-06-22 13:39:41

How to pass command from guest OS to host?

There is a host OS of wines 10, and guests of wines 7 and wines 10. The essence of this is that the guest of wines 10 works, a certain moment comes and it is necessary that the script / program work on the host. How to force the host to run the desired script or program from the wine 10 guest?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
T
TyzhSysAdmin, 2019-06-22
@POS_troi

psexec

A
Alexander Shapoval, 2017-08-18
@sanek_os9

if( !empty( $article ) && !empty( $post = get_post( $article ) ) ) {
$articles[] = $post;
}

E
entermix, 2017-08-18
@entermix

And so?

if( !empty( $article ) && !empty( ($post = get_post( $article )) ) ) {
    $articles[] = $post;
}

UPD:
php.net/manual/ru/function.empty.php
If PHP version is < 5.5, you need to do this:
$post = get_post($article);

if(!empty($article ) && !empty($post) ) {
    $articles[] = $post;
}

K
Kirill Nesmeyanov, 2017-08-18
@SerafimArts

Yes, there are no syntax errors in the code. The fact that it is bad - I agree, but the syntax is correct.

E
Eugene, 2017-08-18
@Flashter

if (!empty(get_post( $article ))) {
 $post = get_post( $article );
 if( !empty( $article ) ) {
  $articles[] = $post;
 else {
  print_r("Артикль отсутствует!");
 }
}
else {
 print_r("Гет пост отсутствует!");
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question