Posts

Showing posts from October 5, 2018

Soap & cURL don't work after upgrading Ubuntu

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I'm running a WordPress site on an Ubuntu VPS Server. After upgrading the server using: do-release-upgrade it was upgraded from Ubuntu 16.04.04 to 18.04.01. Soap and cURL don't seem to work any more, although they are still installed and were working fine before. Any ideas how to fix this issue? ubuntu upgrade curl vps share | improve this question edited Sep 28 at 11:09 Jeff Schaller 33.6k 8 51 113 asked Sep 28 at 10:32 Emre Ozpalamutcu 1 I would first debug the service, before trying to do a SOAP call. e.g. telnet <IP> <port> Output should be: Trying :: <IP> Connected to <IP>. Escape character is '^]'. ` Another thing you can try is to read the server with nmap <IP> to check if the ports you need to contact SOAP are open. If they are not, most likely you will need to config your firewall using firewal-cmd , you

Conditional Statement in Linux,Shell [closed]

Image
Clash Royale CLAN TAG #URR8PPP up vote -3 down vote favorite 1 Find a string and print nth field (value) from that string. If the value of nth field matches with particular value then go to the next command. Eg. Item Value Type MF 1 No RMSF 1 No MDSP 3 No RMMDSP 3 No In my file, the above table occurs more than once. But only a few times that MF , RMSF , MSDP and RMMSDP have values YES in their corresponding 3rd column. I want to write a code in the following manner. Find MF and print the corresponding 3rd column and only if it is equal to YES go to step 2, else exit the code. Find RMSF and print the corresponding 3rd column and only if it is equal to YES go to step 3, else exit the code. Find MDSP and print the corresponding 3rd column and only if it is equal to YES go to step 4, else exit the code. Find RMMDSP and print the corresponding 3rd column and only if it is equal to YES go to step 5, else exit the code. Now go to the string Standard coordinates and p

Fetch values from plist file on Linux

Image
Clash Royale CLAN TAG #URR8PPP up vote 4 down vote favorite 1 I have bash script which was written for OS X and now ported to Linux. I don't have access to the Linux box. The bash script would read values from plist files using the defaults read and PlistBuddy command available on OS X. Since the Linux machine doesn't have these commands, I'm looking for workarounds. Is there library/script (Perl preferably) that helps user fetch values from plist files for a given key on a Linux machine? I tried using sed / awk , but the output isn't reliable. I've come across scripts like plutil.pl that convert a plist file to other formats. I have installed a Virtual machine running Ubuntu on my Mac so that I can test my changes before deploying to the actual Linux box. linux bash scripting osx perl share | improve this question edited Oct 30 '12 at 22:42 Gilles 512k 120 1015 1547 asked Oct 30 '12 at 2:50 smokinguns 151 1