Tag Archives: WARNING

WARNING: Kickstarter's Policies Cause IRS Tax Audits

By Cameron Keng, Contributor

On April 1st, 2013, Kickstarter released a “tax guide” for project creators that will lead thousands of creatives to fall under IRS tax audits as well as their contributors.  The tax guide started with the best intentions, but the execution is beyond wrong.  This is a WARNING to all Kickstarter creators and contributors to be very wary of taking any advice they provided. Dissecting Kickstarter’s Tax Guide Everything is Income It’s unfortunate the Kickstarter’s tax guide didn’t end their tax advice at the first sentence.  “In general, funds raised on Kickstarter are considered income.”  This is the beginning and end of the tax guide.  After this sentence is where the “stuff hits the fan.” Kickstarter Campaigns Are NOT Businesses In general, a creator can offset the income from their Kickstarter project with deductible expenses that are related to the project and accounted for in the same tax year. For example, if a creator receives $1,000 in funding and spends $1,000 on their project in the same tax year, then their expenses could fully offset their Kickstarter funding for federal income tax purposes. This is not true.  This statement assumes that you’re a business under tax law.  A business under the IRS’ definition has specific requirements.  The easiest test to meet the business requirements is to generate a profit for 3 years out of 5 years.  It’s very common for the IRS to go back and audit taxpayers that misclassified their activities. Accrual Method If a creator receives funding in one year and spends money on their project in a later year, consider whether their expenses can still offset their Kickstarter funding using the accrual method of accounting. Kickstarter confuses General Accepted Accounting Principles (“GAAP”) with tax lawGAAP and tax law are two entirely different accounting systems.  It’s like running Window’s on a Mac.  It might work, but it’s not pretty and everything breaks pretty fast. Note, there’s a reason why tax forms have sections called “book-to-tax differences” and check boxes that ask whether you’re applying tax basis or GAAP. Tax law requires that you pay taxes currently on advance payments and prepayments.  Tax law’s goal is make sure that everyone pays their taxes, when income or cash is received.  The IRS does not trust us to save enough money to pay our fair share of taxes months in the future.  We can’t blame the IRS’ distrust considering the United States’ average savings account balance is $3,800 dollars based on the US Census Bureau.

From: http://www.forbes.com/sites/cameronkeng/2013/04/17/warning-kickstarters-policies-cause-irs-tax-audits/

Server disk issue need help

By RyanV

Hello all,

Our Solaris 9? Sun Fire 480R backup server(in another city) is throwing disk errors such as these repeatedly.

WARNING: vxvm:vxio: Subdisk rootdisk-02 block 24037056: Uncorrectable read error
WARNING: vxvm:vxio: Subdisk rootdisk-02 block 7767072: Uncorrectable write error

The server is only accessible via a console port and I don’t know if the cmd line is even available… and unfortunately this server was dropped from a service contract.

I’m not the actual ‘Unix’ admin but it seems that I need to fix this myself and I’m not sure where to begin although it seems that fschk could possibly be the first step?

The server has been rebooted with no change.

I’d really appreciate any direction on this one..as I need to get the Netbackup environment up and running again.

Thanks in advance,
R-

Source: FULL ARTICLE at The UNIX and Linux Forums

Mailx issues

By Yuvaraj737

I’ve my below script compile.yk. This compiles programs in batch and any failed to compile modules will be mailed to my attention.

cd /inv1/io13000/mbmport/mbmerr
ERRFL=/inv1/io13000/srcport/$$_errorlist.txt
X=`ls *.c?? |wc -l`
if [ $X -ge 1 ]
then
echo “Review library path: /inv1/io13000/mbmport/mbmerr/ “|tee $ERRFL
echo ” “|tee -a $ERRFL
cd /inv1/io13000/mbmport/mbmerr
echo “The following modules did not compile”|tee -a $ERRFL
echo “————————————-“|tee -a $ERRFL
ls -1 *.c??|awk -F”.” ‘{print $1}’|uniq|tee -a $ERRFL
cd /inv1/io13000/srcport
uuencode $ERRFL $ERRFL|/usr/bin/mailx -i -s “Compile Errorsa.b@sun.com -c “c.d@sun.com” <$ERRFL
exit -9
else
echo “There are no errors to report!!! “|tee $ERRFL
echo “————————————-“|tee -a $ERRFL
uuencode $ERRFL $ERRFL|/usr/bin/mailx -s “No Compile Errorsa.b@sun.com -c “c.d@sun.com” <$ERRFL
fi

When the mailx program runs, I see the below warning message(shown Red) displayed. What is the reason and how to stop? Can anybody advice?

SIMS-IODEV2:ndvradmn$./compile.yk
*.c??: No such file or directory
There are no errors to report!!!
————————————-
WARNING: RunAsUser for MSP ignored, check group ids (egid=120, want=25)

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Supreme Court: Sorry, Airlines, You Have to Tell the Whole Story

By Brian Stoffel, The Motley Fool

Filed under:

It seems that the Supreme Court is siding with the adage that my grandparents repeated to me over and over again as a child: Honesty is the best policy.

Earlier this week, the nation’s highest court decided that it would not be hearing a case brought on by Southwest Airlines , Allegiant Air, and Spirit Airlines . At issue were certain aspects of the Airfare Advertising Rules put in place by the U.S. Department of Transportation back in early 2012. Specifically, the rules state that all government taxes need to be included in the advertised fares of air carriers. 

Upon news of the Court’s decision, shares of all three companies took a tumble, with Spirit’s falling the most, at 3%.

Why challenge the ruling?
It seems a little odd that the airlines would oppose the rule, especially since the rest of the industry decided not to join these three, and because the rules allow for passengers to see what portion of a ticket’s price comes from paying government taxes.

I’ll take the three on one by one, as each airline has a cost structure somewhat different than traditional airlines. In Southwest’s case, the complaint was based both on principle and logistics. Arguing that grocery stores could sell products for prices not including the taxes, it wondered why airlines should be any different. Furthermore, the company said that the cost for making changes to company websites and rewards programs would be steep.

Allegiant and Spirit, on the other hand, have made a living off lower-than-reality cost advertising. In fact, even after the Airfare Advertising Rules went into effect, Allegiant was fined $100,000 — in part, for brazenly advertising that passengers could “Fly Free” to Las Vegas or Tampa Bay.

And Spirit, which I’ve made no secret about disliking, took things to an even weirder level. Personally, I think it’s bad enough that passengers are charged for everything from printing a boarding pass, to carry-on luggage (as much as $45), and have to try to decipher it all on the company’s confusing fares page; but according to SmartTravel.com, Spirit went so far as to create a webpage to show its displeasure.

Though I was unable to find an active link, Spirit advertised keepmyfareslow.org on its homepage in 2012. As SmartTravel noted back then:

The word “WARNING” is posted in bold capital letters that flash red, driving home a melodramatic point. Spirit invites flyers to contact their representatives to “help stop this injustice,” adding, “If the government can hide taxes in your airfares, then they can carry out their hidden agenda and quietly increase their taxes.” 

Maybe I could take Spirit’s message a little more seriously if the company wasn’t so reliant on difficult-to-understand fees for so much of its revenue already. Talk about the pot calling the kettle black!

Either way, with the Supreme Court‘s decision, all airlines will have to post ticket prices in a uniform way now.

Look at the big picture
One of the …read more

Source: FULL ARTICLE at DailyFinance

Read not prompting/ pausing for input

By Cloudy_Cat

Heya people,
So my script is one of those make-user-scripts, making a bunch of directories in the home folder and copying some files over into the new directories.
However, part of the thing my script need to do is check the home folder if a username matches with a directory which already exists.
e.g. if the username ‘user1’ has a directory in the home folder under the same name, it will prompt the user if he/she wants to keep or delete the directory (and its contents) before moving on with the script.

Here is the part of the script which does this:

Code:

cat $1 | while read line; do

username=$line
if [ -d $4/$username ];
then
echo WARNING username $username already has a directory.
read -p "Would you like to KEEP or DELETE?" answer

if [ "$answer" == "DELETE" ];
then
rm -fr $4/$username
elif [ "$answer" == "KEEP" ];
then
echo "Keeping directory $username"
else
echo "Unknown answer assuming keeping file"
fi

fi

done


Where:
$1 = path to the username_list file
$4 = path to the home directory for user creation

Now as the thread title suggests, the problem is the read line is not prompting for user input.
I suspect it may be something to do with the fact I’m piping via the while loop, but I don’t know I’m just a newbie to all this. Can anyone suggest a solution to this?

Thanks in advance,

Cloudy

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Oregon professor fired for allegedly threatening student protesters

By Perry Chiaramonte

A law teacher with the University of Oregon got a life lesson from the school of hard knocks when he was fired from his position after he got irate with student protesters, seen in an eyewitness video eventually shoving one protester and snatching the phone of another.

James L. Olmstead, an adjunct law professor, was arrested on theft and physical harassment charges after he confronted students from a pro-immigration organization during a campus rally last Thursday and at first seemed to agree with the activists before the public discussion took a sudden bizarre turn.

Olmstead, who also is a land-use and conservancy attorney, started to reject the protestors’ peaceful protesting techniques in an exchange that was captured on video and went viral over the weekend on YouTube.

“Start a f—ing war. … Stop being p—ies,” he starts shouting at the crowd of students. “Start a war, get a gun, shoot me first. I’m right here.”

Click to see video of the incident [WARNING-graphic language]

“This is an aggressive tone. I’m feeling a little threatened right now,” one student can be heard saying on the video as Olmstead rips off his jacket and throws it to the ground, appearing to gear up for a physical altercation.

The professor then becomes more irate when one student approaches him in an attempt to calm him down.

Olmstead is seen in the video shoving the student and starting to threaten the group, urging them to “do something” if they wanted him removed. He then grabs the phone of a student who had been using it to film his awkward behavior and puts it in his back pocket.

With the phone still recording, Olmstead can be heard continuing his tirade, shouting, “Do something.”

He continues by stating that the campus grounds are his public property and posing questions to the protestors.

“Do I have freedom to speak to? Can I yell?” Olmstead said. “I’m part of your performance. You need a protagonist.”

Olmstead was arrested after his outburst and later removed from his teaching position, and he received a letter from university officials stating that he was banned from campus.

“His teaching responsibilities have been reassigned to other professors on staff,” Julie Brown, director of communications for the University of Oregon, told FoxNews.com.

Olmsted did not immediately respond to requests for comment.

“If a liberal professor attacks like-minded students in this way, I can only imagine how he would have treated students of an opposing viewpoint.” Josiah Ryan of advocacy group Campus Reform said in a statement to FoxNews.com.

…read more
Source: FULL ARTICLE at Fox US News

Google Street View Snaps Photos Of Man Getting Handjob (NSFW PHOTOS)

By The Huffington Post News Editors

The 15-lens cameras atop Google’s Street View cars have recorded a host of “interesting” moments in the nearly six years they’ve been snapping photos of the world’s streets: Paddington Bear, the naked Florida woman and, of course, “horse boy,” to name just a few.

But the images of the woman and man on Temperance Street in Manchester, U.K., engaged in some, errr, “manual stimulation” could take the not-safe-for-work cake.

WARNING: NSFW IMAGES BELOW

Read More…
More on NSFW

…read more
Source: FULL ARTICLE at Huffington Post

Display specific lines content from the file

By balareddy

Hell,

I want to grep certain word from file and display above 2 lines and after two lines.

Here is the content of sample file.

Mar 14, 2013 12:56:59 AM Agent.Agent SendTo
INFO: Connection to server:7041 – Credential Transmit Successesful
Mar 14, 2013 8:54:21 AM cgent SendTo
WARNING: Data Transmit to Server Failed – Broken pipe
Mar 14, 2013 9:54:01 AM cAgent SendTo
INFO: Connection to server:7041 – Connect Successesful
Mar 14, 2013 10:56:59 AM Agent SendTo

I wanted to grep the word “WARNING” and I want +2 and -2 lines of the grep word(“WARNING“) along with the grep word line.

Output should be:
INFO: Connection to server:7041 – Credential Transmit Successesful
Mar 14, 2013 8:54:21 AM cgent SendTo
WARNING: Data Transmit to Server Failed – Broken pipe
Mar 14, 2013 9:54:01 AM cAgent SendTo
INFO: Connection to server:7041 – Connect Successesful

I Tried grep -A -B command but am getting the below error.
$ grep -B 2 “WARNING” sampleFile
grep: illegal option — B
Usage: grep -hblcnsviw pattern file . . .

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Get web pages and compare

By gtam

Hello

I’m writing a script to get content of web pages on different machines and compare them using their md5 hash

hear is my code



#!/bin/bash

# Cluster 1
CLUSTER1_SERVERS=”srv01:7051 srv02:7052 srv03:7053 srv04:7054″
CLUSTER1_APPLIS=”test/version.html test2/version.html test3/version.jsp test4/version.html test5/version.jsp”

# Cluster 2
CLUSTER2_SERVERS=”srv01:7055 srv02:7056 srv03:7057 srv04:7058″
CLUSTER2_APPLIS=”test/version.html test2/version.html test3/version.jsp test4/version.html”

# Cluster 4
CLUSTER4_SERVERS=”srv01:7063 srv02:7064 srv03:7065 srv04:7066″
CLUSTER4_APPLIS=”test/version.html test2/version.html”

# Liste des clusters ?* tester
CLUSTERS=”CLUSTER1 CLUSTER2 CLUSTER4″

# init vars
CRITICAL=2
WARNING=1
OK=0

for cluster in $CLUSTERS
do
for server in $(eval echo $${cluster}_SERVERS)
do
server_name=`echo $server | cut -d’:’ -f1,1`
server_port=`echo $server | cut -d’:’ -f2,2`
for applis in $(eval echo $${cluster}_APPLIS)
do
checksum=`curl –silent –write-out ‘%{http_code}n’ “http://$server_name:$server_port/$applis” | md5sum`
if [[ ( “$checksum” -ne “$checksum1” ) ]]
then
exit_code=2
else
exit_code=0
fi
done
done
done

case $exit_code in
“2”)
echo “CRITICAL – App Version Mismatch”
exit $CRITICAL
;;
“0”)
echo “OK – All apps deployed are identical”
exit $OK
;;
*)
echo “CRITICAL – there’s something wrong with this script …”
exit $CRITICAL
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Check_esx_host_vmfs plugin issue while monitoring ESXi DS

By sunnysthakur

Hello,

I setup a check_esx_host_vmfs plugin for monitoring datastore status on ESXi server. But on configuring this plugin, this is working fine but it displays “WARNING” status on UI of Nagios every time.
Currently my datastore size is 926.50 GB and right now free space available is 570.60 GB but still it showing warning on UI.

In command.cfg i mentioned the below one for this plugin.

PHP Code:


define command{

command_name check_esx_host_vmfs

command_line $USER1
$/check_esx3 -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ -l vmfs -w $ARG2$ -c $ARG3$

}




In my services.cfg file i defined the below lines to check the status of datastore using the above mentioned command.

PHP Code:


# check for datasource usage

define service{

use
generic-service

action_url
/nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hi deGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$

host_name ESXiserver

service_description ESXi Datasource Usage

is_volatile ...read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Flash And Fade DEMO For Mac OSX 10.7.5, (And Linux?).

By wisecracker

This is an AT A GLANCE shell DEMO that does:-

1) 10 centred greyscale fades without warning beeps.

2) 5 centred yellow “WARNING!” flashes with beeps every ON state.

3) 5 FULL widowed red “DANGER!!!” flashes with beeps in the ON and OFF states.

It assumes that the warning bell is enabled inside the terminal.

It is primarily for OSX 10.7.5 and above but it could just as easily work in Linux or other UNIX like systems. It is issued as Public Domain and you my do with it as you please…

READ THE CODE FOR MORE INFO…

(Watch for wordwrapping, etc…)

Bazza, G0LCU…


#!/bin/bash
#
# Flash and fade for a Macbook Pro OSX 2.7.5 Terminal...
# A DEMO to show how to give an AT A GLANCE, and, audible warning of impending doom in a shell script.
# It is for something like an analogue Data Logger input say from an Arduino analogue source.
#
# It may well work on other Linux and Unix like machines but is untested and uses the "tput" command
# to hide and unhide the terminal cursor. The command "setterm" is commented out and could be used
# in place of the above depending on the *NIX flavour...
#
# Written in such a way that anyone can understand how it works.
#
# It starts with 10 cycles of grey/gray scale fading on a black background without any beeps then next
# 5 yellow warning flashes with a beep every full flash and finally 5 FULL screen red flashes with beeps
# on every ON and OFF state.
#
# Clear a screen to white on black...
printf "33[0;37;40m"
clear
printf "n Flash and fade for a default Macbook Pro OSX 2.7.5 Terminal.n"
# Turn the cursor off...
#setterm -cursor off
tput civis
# Fade on and off 10 times, grey/gray scales on black.
for fade in $(seq 1 10)
do
printf "33[12;23f33[1;30;40mFading using four _shades_ of grey...33[0m"
sleep 0.1
printf "33[12;23f33[1;90;40mFading using four _shades_ of grey...33[0m"
sleep 0.1
printf "33[12;23f33[1;37;40mFading using four _shades_ of grey...33[0m"
sleep 0.1
printf "33[12;23f33[1;97;40mFading using four _shades_ of grey...33[0m"
sleep 0.1
printf "33[12;23f33[1;37;40mFading using four _shades_ of grey...33[0m"
sleep 0.1
printf "33[12;23f33[1;90;40mFading using four _shades_ of grey...33[0m"
sleep 0.1
done
# Over-write the above with the ...read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Daytona Crash Video: Fan Recording Captures Horror In Grandstand (VIDEO)

By The Huffington Post News Editors

A massive crash at Daytona International Speedway sent debris into the stands on Saturday, injuring at least 30 fans. The frightening scene in the grandstand was captured by a fan, Tyler Andersen, who had been recording the final lap of the Nationwide race.

During the last lap, Kyle Larson‘s car went airborne as part a multi-car wreck. The car hit the catch fence that separates the track from the grandstand but debris, including a tire, landed amidst the spectators. Andersen appeared to be filming just feet away from where one of Larson’s tires landed. Amidst the confusion, fans in the video appeared to be calling for medical attention for someone who may have been injured.

WARNING: Explicit Language In Video

Read More…
More on Motorsports

…read more
Source: FULL ARTICLE at Huffington Post

Photos Of Balachandran Prabakaran, Son Of Tamil Tiger Leader, Suggest He Was Murdered In Sri Lanka (GRAPHIC PHOTOS)

By The Huffington Post News Editors

By Shihar Aneez and Ranga Sirilal
COLOMBO, Feb 19 (Reuters) – Photographs of the son of the leader of the Tamil Tiger rebels suggest he was murdered, and not killed in the cross fire during the chaotic end of Sri Lanka’s three decade war, a British-based documentary maker said.
If confirmed, the accusation would leave the Sri Lankan government with more questions to answer about allegations of systematic executions at the end of the war, especially given Balachandran Prabakaran was just 12.
WARNING: GRAPHIC PHOTOS BELOW
Tens of thousands of civilians were killed in 2009 in the final months the war, a U.N. panel said, as government troops advanced on the ever-shrinking northern tip of the island controlled by Tamil rebels fighting for an independent homeland.
The U.N. panel said it had “credible allegations” that Sri Lankan troops and the Tamil Tigers both carried out atrocities and war crimes, and singled out the government for most of the responsibility for the deaths.
Sri Lanka has rejected all rights abuse allegations.
One of the photographs obtained from anonymous sources by Britain’s Channel 4 showed Balachandran, son of Tamil Tiger leader Velupillai Prabakaran, being given a snack and some water after being captured. Another shows him dead.
Digital image analysis indicates the photographs were taken by the same camera, suggesting he was killed deliberately, said Callum Macrae, director of the Channel 4 documentary “No fire zone: The killing fields of Sri Lanka“.
“They prove that Balachandran was not killed in crossfire, or in a battle. His death was deliberate and calculated,” Macrae wrote in The Hindu, an Indian daily.
The government has said Balachandran and many rebel leaders were killed in crossfire.
Macrae said the photographs formed a part of new evidence in the documentary that will be shown for the first time next month in Geneva, to coincide with a United Nations Human …read more
Source: FULL ARTICLE at Huffington Post

A couple of Network issues – Please help !

By terrykhatri531

Hi,

I am using Solaris 11 and having a couple of issues with net configuration.

1. After I switched to manual network management I am getting the following error at startup :

HTML Code:

svc:/network/ipmp/default: Method "/lib/svc/method/net-ipm" failed with exit status 95.
network/ipmp:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)


svcs -xv | grep network

HTML Code:

svc:/network/ipmp:default (IP Multipathing)
See: /system/volatile/network-ipmp:default.log
svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
See: /var/svc/log/network-smtp:sendmail.log


vi /system/volatile/network-ipmp:default.log

HTML Code:

Feb 18 15:07:02 Enabled.
[ Feb 18 15:07:25 Executing start method ("/lib/svc/method/net-ipmp"). ]
main: setup_listener failed for both IPv4 and IPv6
Feb 18 15:07:27 Method "start" exited with status 95.


svcs -l svc:/network/ipmp:default

HTML Code:

fmri svc:/network/ipmp:default
name IP Multipathing
enabled true
state maintenance
next_state none
state_time Mon Feb 18 15:07:27 2013
alt_logfile /system/volatile/network-ipmp:default.log
estarter svc:/system/svc/restarter:default
contract_id
manifest /lib/svc/manifest/network/network-ipmp.xml
dependency require_all/none svc:/network/loopback (online)


2. My net0 interfaced gets disabled with the following error :

HTML Code:

WARNING: net0 has duplicate address 192.168.001.010 (in use by 68:5d:43:e3:a3:8c); disabled


How do I find out which host/interface is using the same ip address by this MAC Address 68:5d:43:e3:a3:8c as I am unable to find this MAC3 on my network.

Here are the other statistics:

ifconfig -a

HTML Code:

lo0: flags=2001000848 mtu 8232 index 1
inet 0.0.0.0 netmask ff000000
net0: flags=4001000842 mtu 1500 index 4
inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
ether 0:50:56:39:73:d2
net2: flags=1000843 mtu 1500 index 2
inet 192.168.0.101 netmask ffffff00 broadcast 192.168.0.255
ether 0:50:56:34:ad:80
net4: flags=1000843 mtu 1500 index 3
inet 192.168.2.161 netmask ffffff00 broadcast 192.168.2.255
ether 0:50:56:24:2:1
net0: flags=20002000840 mtu 1500 index 4
inet6 ::/0
ether 0:50:56:39:73:d2
net2: flags=20002000840 mtu 1500 index 2
inet6 ::/0
ether 0:50:56:34:ad:80
net4: flags=20002000840 mtu 1500 index 3
inet6 ::/0
ether 0:50:56:24:2:1


ipadm show-addr

HTML Code:

ADDROBJ TYPE STATE ADDR
net0/addr static duplicate 192.168.1.10/24
net2/addr static ok 192.168.0.101/24
net4/addr static ok 192.168.2.161/24


dladm show-phys

HTML Code:

LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
net2 Ethernet up 1000 full e1000g1
net3 Ethernet unknown 0 unknown e1000g2
net4 Ethernet up 1000 full e1000g3


netadm list -x

HTML Code:

TYPE PROFILE STATE AUXILIARY STATE
ncp Automatic disabled disabled by administrator
ncp DefaultFixed online active
loc Automatic offline conditions for activation are unmet
loc NoNet offline conditions for activation are unmet
loc DefaultFixed online active


netadm show-events -v

HTML Code:

EVENT DESCRIPTION
IF_STATE net0 -> state flags 0 addr 192.168.1.10/24
IF_STATE net0 -> state flags 0 addr 192.168.1.10/24
IF_STATE lo0 -> state flags 0 addr 127.0.0.1/8


Kindly help me fix these issues.

Thank you very much in …read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Shell Script to find out if a process is running on any all machines

By Rex0226

Hi All, I have been a guest visitor from a long time and this forum is wonderful. I finally am a member of this forum too, so i am here stuck with a shell script that i was trying to write
My requirement is that i should be able to create a shell script which will check if a process is running on this machine and any other machines too i.e if i am trying to start a app on server3 it should first check if the app is already started on server1 and server2 if not then it should start this app on server3 else it should exit.

I tried using the script to create lock file to do the same but was not sure if that would, for an idea i will post that script here. please help me out guys, thank you!!!

CreateLockFile () {

unset PROCESS_ID
unset ID
LFILE=${TEMP_PATH}/${1}_${TODAYS_DATE}.LCK
ID=$2

if [ -r ${LFILE} ]
then
OPID=`cat ${LFILE}` 2> /dev/null
if [ -z ${OPID} -eq 0 ] #Make Sure OPID contains a value
then
exit ${FAILURE} “ERROR-APP–>: `basename ${LFILE}` exists but contains no

Process ID” | tee -a ${INLOG}
else
PROCESS_ID=`ps -p ${OPID} | grep ADD-SCRIPT-NAME-HERE | awk -F” ” ‘{print $1}’

2> /dev/null`

if [ ${PROCESS_ID} ] #Lock File is there, check if process is actually

running
then
echo “WARNING–>: ${1} Script Is Currently Running [PID=${OPID}], Exiting.

${DATE_TIME}” | tee -a ${INLOG}
exit ${SUCCESS}
else
echo “INFO–>: Old Lock File with PID= [ ${OPID} ] Exists But Process Is Not

Running. ” >> ${INLOG}
echo “INFO–>: Overwriting Old PID with New PID Value of [ ${ID} ] ” >>

${INLOG}
echo “$ID” > ${LFILE}
fi
fi
else
echo “$ID” > ${LFILE}

if [ $? -ne 0 ]
then
exit ${FAILURE} “ERROR-APP–>: Could Not Create Lock File – Exiting ” | tee -a

${INLOG}
fi
fi
}

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Error after systeme restoration

By andersonedouard


Rebooting with command: boot
Boot device: /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk@0,0:a File and args:
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
WARNING: system call missing from bind file
WARNING: Cannot mount /etc/dfs/sharetab

Hardware watchdog enabled
libscf.c:3249: scf_handle_bind() failed with unexpected error 1017. Aborting.
Feb 9 05:38:45 svc.startd[12]: restarting after interruption
libscf.c:3249: scf_handle_bind() failed with unexpected error 1017. Aborting.
Feb 9 05:38:45 svc.startd[15]: restarting after interruption
libscf.c:3249: scf_handle_bind() failed with unexpected error 1017. Aborting.
Requesting maintenance mode
(See /lib/svc/share/README for additional information.)


Can someone please help on how i can fix this? Good day and thank your for your help.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Cross Compilig Issue of udev-151 for MIPS Little Endain Architecture

By bsreeram

Hi All,
I am trying to cross compile udev-151 for MIPS little endian architecture.

I am configuring like this:

./configure –prefix=$PWD/sree –host=mips-linux-gnu

configure: WARNING: If you wanted to set the –build type, don’t use –host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for mips-linux-gnu-strip… mips-linux-gnu-strip
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for style of include used by make… GNU
checking for mips-linux-gnu-gcc… mips-linux-gnu-gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… yes
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether mips-linux-gnu-gcc accepts -g… yes
checking for mips-linux-gnu-gcc option to accept ISO C89… none needed
checking dependency style of mips-linux-gnu-gcc… gcc3
checking how to run the C preprocessor… mips-linux-gnu-gcc -E
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define __EXTENSIONS__… yes
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… 64
checking build system type… x86_64-unknown-linux-gnu
checking host system type… mips-unknown-linux-gnu
checking for a sed that does not truncate output… /bin/sed
checking for fgrep… /bin/grep -F
checking for ld used by mips-linux-gnu-gcc… /home/intel/mips-4.3/mips-linux-gnu/bin/ld
checking if the linker (/home/intel/mips-4.3/mips-linux-gnu/bin/ld) is GNU ld… yes
checking for BSD– or MS-compatible name lister (nm)… /home/intel/mips-4.3/bin/mips-linux-gnu-nm -B
checking the name lister (/home/intel/mips-4.3/bin/mips-linux-gnu-nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking for /home/intel/mips-4.3/mips-linux-gnu/bin/ld option to reload object files… -r
checking for mips-linux-gnu-objdump… mips-linux-gnu-objdump
checking how to recognize dependent libraries… pass_all
checking for mips-linux-gnu-ar… mips-linux-gnu-ar
checking for mips-linux-gnu-strip… (cached) mips-linux-gnu-strip
checking for mips-linux-gnu-ranlib… mips-linux-gnu-ranlib
checking command to parse /home/intel/mips-4.3/bin/mips-linux-gnu-nm -B output from mips-linux-gnu-gcc object… ok
checking for dlfcn.h… yes
checking for objdir… .libs
checking if mips-linux-gnu-gcc supports -fno-rtti -fno-exceptions… no
checking for mips-linux-gnu-gcc option to produce PIC… -fPIC -DPIC
checking if mips-linux-gnu-gcc PIC flag -fPIC -DPIC works… yes
checking if mips-linux-gnu-gcc static flag -static works… yes
checking if mips-linux-gnu-gcc supports -c -o file.o… yes
checking if mips-linux-gnu-gcc supports -c -o file.o… (cached) yes
checking whether the mips-linux-gnu-gcc linker (/home/intel/mips-4.3/mips-linux-gnu/bin/ld) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
checking for gawk… (cached) gawk
checking for mips-linux-gnu-pkg-config… no
checking for pkg-config… /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0… yes
checking for gtkdoc-check… no
checking for gtkdoc-rebase… no
checking for gtkdoc-mkpdf… no
checking whether to build gtk-doc documentation… no
checking for xsltproc… /usr/bin/xsltproc
checking for gperf… /usr/bin/gperf
checking for GLIB… yes
checking for acl_init in -lacl… no
configure: error: libacl not found

Please guide me to fix this error. I also have installed libacl using sudo -apt-get install command. yet it throws error while configuring it.

Source: FULL ARTICLE at The UNIX and Linux Forums

fsck issue on /

By VijayPuttu

unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0)

——————————————————————————–

What can I fix this issue? I have ran below commands but everything is same.

Code:

WARNING: Last shutdown is later than time on time-of-day chip: check date.
The / file system (/dev/rdsk/c1t0d0s0) is being checked

WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0).

svc.startd[7]: svc:/system/filesystem/usr:default: Method "/lib/svc/method/fs-usr" failed with exit status 95.
svc.startd[7]: svc:/system/filesystem/usr:default: failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
Requesting System Maintanance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) csnnot run
Root password for system maintenance (control-d to bypass):


Moderator’s Comments:
Please use code tags next time for your code and data.

Source: FULL ARTICLE at The UNIX and Linux Forums

SocialRok 1.4 (Amarok 2.0 Script)

ThumbnailSocialRok 1.4
(Amarok 2.0 Script)
SocialRok allows you to post what you’re listening in Amarok on the Social Networks,
allows to send a Cover Arts along with the post and also creates a link to YouTube to do a search!

AVAILABLE NETWORKS
Facebook + Flickr (optional, if you want to send Cover Art along with the post as link format.)
Twitter
GooglePlus (Coming Soon. We have to wait until Google release the API with the write access.)
Skype (curl and python-dbus must be installed.)

INSTRUCTIONS
Take a look at the help in the Script Configuration.

That’s all!

If you like this script please leave a comment!

changelog:
v1.4:
– Many bugs correct on server side. (The correction of these errors is continuous and is not necessarily linked to release of new versions.)
– Force resizing to 100×100 for cover art when uploading on Flickr, because Facebook uses 75×75 image as link and as result the operation is more fast and there are minor possibility of errors.
– Added skype as Social Networks (curl and python-dbus must be installed.)
– Changed the method for open the web pages.
– Fixed minor graphics bugs.

v1.3:
Added Flickr option, for upload Cover Arts in a space that allows to create a link instead of as normal picture when you post on Facebook. Read the Help for the Configuration.
Implemented Google+ in the code but disabled it because the API actually is read only.

v1.2:
– Added option for attach Cover Art (if exist) in the Post message.
WARNING: for existing facebook users, the app must deleted from App Center and then must be granted again (sorry).

v1.1:
– Fixed message options for Twitter and changed default text.
– Others minor bugs fixed.

v1.0:
– First script release.

[read more]

job recommendations:

Sales Engineer full time employee
ownCloud Inc. United States of America, Boston more about this offer

[more jobs]

Source: FULL ARTICLE at KDE Apps

GamCat 1.0.6 (KDE CD/DVD Software)

ThumbnailGamCat 1.0.6
(KDE CD/DVD Software)
This is a CD/DVD and folder catalogizer written in Gambas. It uses sqlite3 server for the database.It can browse inside the ARJ, ACE, TAR, RAR, and ZIP archives. The Virtual Compilation feature requires mkisofs package for .ISO creation.

Features:
– Scanning removable devices, partitions and folders and FTP servers
– Scanning inside archives
– Exporting the results
– Browsing the scanned archive file
Virtual Compilation. This is an option to create a CD/DVD from the files listed in database in form of k3b project and .ISO file
– Managing the disks and video DVDs, you can add video DVDs from a filelist in .TXT format.
– Managing your customers, to know to whom you’ve given your disks and when.
– Rating your disks and specifying their genres
– You can exclude certain files from being scanned (like Thumbs.db or ReadMe.txt)
– You can search through categories
– You can quickly remove unwanted hits from within the search results by a right-click menu.
– Reports in various formats about a volume: .TXT and .HTML
– Ability to create a complete website from out of your catalog.
– Possibility to create thumbnails of image files of following type: JPG, PNG, BMP, TIFF, PCX, GIF and PDF.
– Scanning through .ISO image files
– Scanning the tags of MP3 files
PDF and GIF thumbnails
– PowerQuery – sophisticated search algorithm for complex searches
– Import of Advanced Disk Catalog files via XML.

Lyrics providers:
lyrics.wikia.com
lyricstime.com
lyricsmania.com
zeneszoveg.hu
lyricsdownload.com
darklyrics.com
elyrics.com
hotlyrics.net
azlyrics.com
lyricsreg.com
lyrics007.com
metrolyrics.com

WARNING: This is a Gambas 3 project now, although the Kde-Apps is not ready for that

– GamCat can create thumbnails for the following movie formats: .3GP, .MOV, .MP4, .FLV, .AVI, .MKV, .MPG, .VOB, .MPEG
– There can be sequences of thumbnails for each movie file (1-25 images). This has been done using ffmpeg
– The thumbnails can be copied to a separate folder for easy access, as well as creation of a montage image of all the thumbnails with movie data.
– The thumbnail’s resolution can be set
– You can create custom playlist from the MP3 database
– You can play the playlist as .m3u file in external players
– It is possible to search for a song using a fragment of its lyrics
FTP scan dialog has been fixed
– A powerful statistic tool which can:
* compare two volumes
* make deep analysis of a volume
* check the scanned HDD folders for changes

GamCat is avilable also in Polish language: special thanks to Gnomek for translation and ideas/wishes, and the countless testings.
GamCat is now available in German language, thanks to work of Andrea Ambrus!

The German translation is not complete.

changelog:
– Added a new set of tools for database managing
– The export/import of single volumes has been replaced with the new tools
– The file format .sqg has been dropped in favor of .tar.gz and .sqgx for the protected files
– New abilities to split the database into two parts, to create new database from selection or to remove multiple volumes at once. It is also possible to import volumes and merge with the existing ones.
– The Search tool’s input text box has been replaced with a combobox which remembers the search history of a session.
– Fixed a lot of errors, the biggest was a very old one, which did corrupt the calculation of volume’s size. This version contains a script which restores the correct values at first startup.

Version 1.0.6 is a bugfix for version 1.0.5

[read more]

job recommendations:

Sales Engineer full time employee
ownCloud Inc. United States of America, Boston more about this offer

[more jobs]

Source: FULL ARTICLE at KDE Apps