Hello everyone,
I keep getting this message every so often when my perl script runs. Any one have any ideas how to fix it? The message points to this particular code in my script.
Use of uninitialized value in transliteration (tr///)
my $count = $text =~ tr/://;
Thanks!
The script searches for active interfaces and returns the correct value except I want to also add a statement in there that returns "No active interfaces found" if there are truly no active interfaces.. having trouble adding an if/else statement in here? Any suggestions?
#!/bin/sh
for iface in...
The script searches for active interfaces and returns the correct value except I want to also add a statement in there that returns "No active interfaces found" if there are truly no active interfaces.. having trouble adding an if/else statement in here? Any suggestions?
#!/bin/sh
for iface in...
This command greps for 'unlinkd' which works fine
ps -l -u squid | grep unlinkd | cut -c 96-102
but as soon as I put it in a script ..the output is always the word 'UID'
Any one know why that is?
variable=(`ps -l -u squid` "| grep unlinkd | cut -c 96-102")
ls –lR |awk '{total +=$5};END {print "Total size: " total/1024/1024 " Mb"}'
I'm trying to get the total size of the current directory including subdirectories with this command. Can't figure out why it gives me this message. Can someone provide some guidance? Thanks!
ls: –lR: No such file or...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.