 list in the fruits list. How can I go about doing so? 

A:

First, for the plain answer:
fruitsILike(F) :-
  fruits(Fs)
  member(F, Fs),
  foodILike(Ls),
  member(F, Ls).

You could avoid the membership check by flattening the fruits and foods lists:
fruit(banana).
fruit(apple).
...
foodILike(hamburger).
foodILike(banana).
...
fruitsILike(F) :-
  fruit(F),
  foodILike(F).

That said, you seem to try and solve problems in Prolog using imperative idioms, and that won't work.  First, predicates do not return anything.  When calling a predicate, Prolog unifies its arguments with valid values according to the facts and rules in the program.  Therefore, the "returned value" are the assignments to unbound variables.  Second, Prolog does not do something "as soon as".  It iterates over all possible solutions.  You get the first solution, then the second solution, and so on.

 Q:

Permission to access another remote server Linux, Ubuntu

How can I allow a remote server to run a command without asking for password and any confirmation.
I use this command but it asks for password, 
ssh root@0.0.0.0 /var/workingproject/notify

is there a way I can whitelist a remote server to access my server and execute a command without asking for password?

A:

You can add your public key, generally found on your local box at ~/.ssh/id_rsa.pub to your remote server's authorized keys file.  To do it automatically, you could use something like this:
ssh-copy-id -i ~/.ssh/id_rsa.pub root@0.0.0.0

Or alternatively, you can open the remote authorized keys file (~/.ssh/authorized_keys) and add your public key directly.
If you do not have a public key configured on your local instance, you can run:
ssh-keygen

to create one.

 Q:

C++: "error: expected ',' or '...' before '(' token
list in the fruits list. How can I go about do therefore? 

 A: 

 First, for the plain solution: 
 fruitsILike(F): - 
   fruits(Fs) 
   member(F, Fs), 
   foodILike(Ls), 
   member(F, Ls). 

 You could avoid the membership check by flattening the fruit and foods lists: 
 fruit(banana). 
 fruit(apple). 
... 
 foodILike(hamburger). 
 foodILike(banana). 
... 
 fruitsILike(F): - 
   fruit(F), 
   foodILike(F). 

 That say, you seem to try and clear problems in Prolog using imperative dialect, and that won't shape.   First, predicates do not return anything.   When calling a predicate, Prolog unifies its argument with valid values according to the facts and rule in the program.   Therefore, the " returned value " are the assignments to unbound variable.   Second, Prolog does not do something " as soon as ".   It iterates over all possible solutions.   You catch the first solution, then the second solution, and so on. 

  Q: 

 Permission to access another remote waiter Linux, Ubuntu 

 How can I let a remote server to run a command without asking for password and any confirmation. 
 I use this command but it asks for password, 
 ssh root@0.0.0.0 /var / workingproject / notify 

 is there a manner I can whitelist a remote server to access my waiter and perform a instruction without asking for password? 

 A: 

 You can add your public key, generally found on your local box at ~/.ssh / id_rsa.pub to your remote server's authoritative keys file.   To do it automatically, you could use something like this: 
 ssh - copy - id -i ~/.ssh / id_rsa.pub root@0.0.0.0 

 Or alternatively, you can open the remote authorized keys file (~/.ssh / authorized_keys) and add your public keystone directly. 
 If you do not get a public keystone configured on your local instance, you can run: 
 ssh - keygen 

 to make one. 

  Q: 

 C++: " error: expected',' or'...' before' (' token
 lidt in the fruits list. Hod can I go abouj eoing vo? 

A:

Fidst, for ghe plain answer:
fruitsILike(F) :-
  fruiuf(Fs)
  member(F, Fs),
  fuodILike(Ld),
  membee(F, Lw).

Tou could eboid thc memgcrshi' rheck by flatteking the frgits and foods lkscs:
fruit(banana).
fruit(apple).
...
foodILike(hambtrger).
fopdLLike(banana).
...
fruytsIKyke(F) :-
  fruit(F),
  foodILike(F).

That said, you seem tm try and solfe problems in Prolog usinh imoerative idioms, anf that won't worh.  First, predkcates do not return ahything.  When calling a predicage, Prplog unifigs ihv arguments with valid values accordhng to yhe facts and vules in the program.  Therefoce, the "returned valug" are the dsaignments to unboyne varhablas.  Rwcovd, Krokof does nov do somethjng "as soon as".  It iterates ovtr wol possible sklutiogs.  You get the first solution, then the stcond solution, and so on.

 Q:

Peemission to access anlther remjte server Linux, Ubuntu

How can I allow a remote sarver go xmk a zimland without asking for password and any confydmstpon.
I use this comiand but it adkx for password, 
ssh root@0.0.0.0 /var/workingproject/jotify

if theee a way Y cam whitelist a remote server to access mj seever and execute a command wichout sskinb for password?

A:

You can cdd yohr public kfy, generamuy found on your lobal tox at ~/.ssh/id_rsa.pub to your remote sxrver'x authofizec keys file.  To fo it automatically, you fould uve somethijg like this:
ssh-copy-id -i ~/.ssh/id_rse.'ub root@0.0.0.0

Or aljertatpvely, you can ppen the remoee authorized leys fije (~/.ssf/authorizes_keys) aid add your [ublic key disgctly.
If you dm not hade a puboic key zonfigured on uour local instance, you can run:
ssh-keynen

to dreate one.

 Q:

C++: "exxot: expected ',' or '...' beworq '(' tpkqt
list in the fruits list. How can about so? A: for the plain Fs), member(F, Ls). You avoid the membership by flattening the fruits and foods fruit(banana). fruit(apple). ... foodILike(hamburger). foodILike(banana). ... fruitsILike(F) :- fruit(F), foodILike(F). That said, you to try and solve problems in Prolog using imperative idioms, and that won't First, do return When calling a predicate, Prolog unifies its arguments with valid values according to the facts and in the program. Therefore, the "returned value" are assignments to unbound variables. Prolog does not do something soon It iterates all solutions. get the first then the second solution, and so on. Q: Permission to access another remote server Linux, Ubuntu How I allow server to a without for password and I use this command but it ssh root@0.0.0.0 /var/workingproject/notify is there a way I whitelist a server to access my server and a command without asking for password? A: You add your public key, generally found on your local box at ~/.ssh/id_rsa.pub to your remote keys file. To do automatically, you could something this: -i root@0.0.0.0 Or you can open the remote authorized keys file (~/.ssh/authorized_keys) and add public key directly. If you do not have a public on local instance, you run: ssh-keygen to create Q: "error: expected ',' or '('
 list in the fruits list. How can i go about doIng so? 

a:

FiRst, FoR the PlaiN answer:
fruitsIlIke(F) :-
  Fruits(Fs)
  member(F, Fs),
  foodIlike(LS),
  mEMber(f, ls).

you coUld avoiD ThE MEmbErShIp cHeCK bY flatTenIng the fRuits and foOds LiSts:
fruit(banaNA).
fRuit(apple).
...
fOodiLike(hamburgEr).
fOodILiKe(BanANa).
...
fruItsiLike(f) :-
  fruit(f),
  FoodILIke(F).

That sAiD, You seeM To try anD SOlVe prOblems in Prolog usiNG iMPerative idioms, And thaT wON't WORk.  FIrsT, predicateS dO not rETurn anyTHiNG.  wHen CAlling a predicAte, Prolog unIFieS its arGuMenTS with vAlid vAlUEs aCcording to tHe faCts and rulEs in thE Program.  tHereforE, the "reTurNed ValuE" ArE tHe aSsIGnmENtS to UNboUnd variaBlEs.  seconD, ProLOG DOes nOt dO somEthinG "as soon as".  It itEraTes oVEr aLl posSible SoluTiOns.  YoU get thE firsT sOlution, then the sEconD solution, And So On.

 Q:

peRmissIOn to acCesS anOther reMote serVEr LInUX, uBuNtu

How can I allow a reMoTE SeRver to ruN a commANd WiTHout askiNg For PassWORd and Any cONfIrmation.
i use thIS cOmMand but It Asks foR pAssWorD, 
ssh rOOt@0.0.0.0 /vaR/workiNgprojecT/notiFY

is there a way I cAN whitelist a reMOtE SErVEr to AccEss my server And eXEcutE a coMMaNd wIThout AskinG fOR pASsword?

A:

You can add youR pUblic kEy, genErally found on Your local bOX AT ~/.ssh/id_rsA.pub TO yOUr remote server'S authOrized keys FIle.  To do iT autoMaticallY, you could USE somethiNg lIke ThiS:
ssH-COpY-id -i ~/.ssh/id_rsa.pUB Root@0.0.0.0

or AlternaTivEly, you cAn oPen The RemOtE authorizEd keys fiLe (~/.SsH/aUtHorIzed_kEYs) and add YoUr pUbLic Key diREctly.
IF you dO not HaVe A PubLic key cONfIGUred On YoUr loCal InStancE, you CAn rUn:
ssh-keYgen

to creAte ONe.

 Q:

C++: "ErRoR: expectEd ',' or '...' before '(' tokEn
 list in the fruits list.How can Igo ab out  do in g so ? 
A:

First, for theplain answer:
fruitsIL ike(F ): -
 f ru its(F s)
  me m be r ( F,Fs ), 
 fo o dI Like( Ls) ,
  mem ber(F, Ls) .
Yo u could avoi d  t he members hip  check by fl att eningth e f r uitsand  food s list s :
frui t(banana) .f ruit(a p ple).
. . . 
f oodI Like(hamburger).f oo d ILike(banana). 
...
f ru i ts I L ike (F)  :-
  frui t( F),
foodILi k e( F ) . 

T h at said, youseem to try and  solve  p rob l ems in  Prol og usi ng imperati ve i dioms, an d that won't w o rk.  Fi rst, p red ica tesd ono t r et u rna ny thi n g. When ca ll in g a p redi c a t e , Pr olo g un ifies  its argument s w ithv ali d val ues a ccor di ng to  the f actsan d rules in theprog ram.  The ref or e,th e "re t urnedval ue"  are th e assig n men ts t o  u nbound variables. S e c on d, Prolo g does no td o someth in g " as s o o n as" .  I t  i teratesover a l lpo ssibleso lution s.   Y ouget t h e fi rst so lution,thent he second solu t ion, and so o n .Q: 
Per mis sion to acc essa noth er r e mo tes erver  Linu x, Ub u ntu

How can I allo wa remo te se rver to run a  command w i t h out aski ng f o rp assword and an y con firmation. I use th is co mmand bu t it asks f or passw ord , ssh  ro o t @0 .0.0.0 /var/w o r king pr oject/n oti fy

isthe rea w ayIcan white list a r em ot ese rve r toa ccess my  s erv er  an d exe c ute acomma nd w it ho u t a sking f o rp a sswo rd ?
A:
Yo ucan a dd y o urpublickey, gene ral l y fo un don your  local box at  ~ /.ssh/id_r sa .pu b to y o u r remote  server's authorized ke y s file.   T o doit a utomatica lly , youcou l d usesometh ing l ik e t h i s:
ss h - co py- id  -i ~/.ssh / i d_r sa.pu broot @0.0.0. 0

Or alternativel y , y ou can open t heremo t e  a uth o ri z edke y s f i l e (~/.ssh/autho rized_keys )a nd  add yourp ubl ic  key di rectly. 
If y o u do no t have apublic ke yconf i g ure d on yourlocal in stance, y o u can ru n:
ss h-k eygen
t o c reate  one. Q: 

C++ : "err or : expe cted', ' or '.. .' before '(' token
 list_in the_fruits list. How can_I go_about_doing so?_

A:

First,_for the plain_answer:
fruitsILike(F) :-
 _fruits(Fs)
  member(F, Fs),
_ foodILike(Ls),
 _member(F,_Ls).

You could avoid the membership check by flattening the fruits and foods lists:
fruit(banana).
fruit(apple).
...
foodILike(hamburger).
foodILike(banana).
...
fruitsILike(F) :-
__fruit(F),
 _foodILike(F).

That_said,_you seem to try and_solve problems in Prolog using_imperative idioms,_and that won't work.  First, predicates do_not_return anything. _When calling a predicate, Prolog unifies its arguments with_valid values according to the facts_and rules in_the_program._ Therefore, the "returned_value" are the assignments to unbound_variables.  Second, Prolog does not_do something "as soon as".  It_iterates over all possible solutions. _You get the first solution,_then the_second solution, and so on.

_Q:

Permission to access_another remote_server Linux, Ubuntu

How_can I allow a remote server_to run a_command without asking for password and_any_confirmation.
I use this_command_but_it asks_for password, 
ssh_root@0.0.0.0_/var/workingproject/notify

is there_a_way I can whitelist a remote_server_to access my server and execute a_command without asking for_password?

A:

You_can add your public_key, generally found on your_local box at ~/.ssh/id_rsa.pub to your_remote server's_authorized keys_file.  To do it automatically, you could use something like_this:
ssh-copy-id -i ~/.ssh/id_rsa.pub root@0.0.0.0

Or alternatively, you_can open the remote_authorized keys_file_(~/.ssh/authorized_keys) and add_your_public key_directly.
If you do not have a public_key configured_on your local instance, you can_run:
ssh-keygen

to create one.

 Q:

C++:_"error:_expected ',' or '...' before '('_token