Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Member Avatar for yair7190

Although it sounds pretty simple, i haven't found a proper answer for this issue. I want to know how can i call a perl script and pass a variable to it. For example, lets say "Parse.pl" is a parsing script of some sort and i want to call it from …

Member Avatar for bryansmith123
0
313
Member Avatar for yair7190

Hi, i have the following script: [CODE] #!/bin/perl -w use strict; $ENV{"PATH"} = ".;" . $ENV{"PATH"}; print "Revesing the history file...\n"; print reverse <> history.txt > history_rev.txt; print "Reversing the XpressClients file\n"; print reverse <> XpressClients.txt > Xp_clients.txt; print "Parsing the XpressClients file...\n"; require 'Clients.pl' Xp_clients.txt > clients_file.txt; [/CODE] the …

Member Avatar for yair7190
0
159
Member Avatar for yair7190

hello everyone, i have a script in which i enter a log file into an array and then i go line by line to search for a line containing "free disk space". once the line is found i want to check if the value is greater than 75. the line …

Member Avatar for yair7190
0
100
Member Avatar for yair7190

hi everyone! i'm kind of new to perl and having some problems with a script i wrote. hope i came to the wright place :) here's my problem: i wrote a script that goes through each line in a file (i loaded the file into an array "RevLogFile") and when …

Member Avatar for yair7190
0
134
Member Avatar for yair7190

hi everyone, im trying to write a shell script that calculates memory usage of several processes (i basically run bash several times). here's the script: [code=bash] #!/usr/bin/bash memUsage=`ps -ef | grep bash| awk '{sum+= $2}'` echo $memUsage if $memUsage>130000000000000 ; then echo "mem usage exceeded" else echo "mem usage normall" …

Member Avatar for ghostdog74
0
118
Member Avatar for yair7190

hi everyone, im searching for a way to insert several values i get from a command [top |grep root |awk '{print $10}'] to a variable, so that the variable will contain the sum of all values returned. (trying to calculate MEM usage by all root processes ) can anyone help? …

Member Avatar for ghostdog74
0
136
Member Avatar for yair7190

hi everyone, i guess you already know this annoying little message that pops-up every few minutes - " CRITICAL SYSTEM ERROR your computer was infected by a trojan. it's dangerous for your computer, some files can be lost! click OK to download the antispyware program to clean your system! (recomended) …

Member Avatar for aikibro
0
155