Fedora :: Timer Function Through Command Line?
Jan 13, 2010
I've been working in a program in BASH and would like to measure its efficiency in different machines. Of course I am able to display the date at the beginning and at the end of its execution, but I'd rather use some sort of timer function to measure in seconds its speed. Is there any timer function available through command line?
View 6 Replies
ADVERTISEMENT
Feb 28, 2010
I have added mkalias in my .bashrc file as I learnt here
[Code]...
View 1 Replies
View Related
Jan 17, 2010
I'm implementing a TCP protocol. TCP implementation requires to send packets continuously and if the receiver doesnt respond after a particular interval of time it should resend the packet again. I need some method to implement a timer expiry function. How can I implement it? Should i implement threads (If yes can you please give a sample)? or is there any better method? I'm implementing it in a Unix system.
View 3 Replies
View Related
Dec 28, 2010
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies
View Related
May 29, 2010
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies
View Related
Nov 22, 2009
curl: try 'curl --help' or 'curl --manual' for more information so here curl is working when I'm trying php test.php I got: PHP Fatal error: Call to undefined function: curl_init() in /root/test.php on line 142
Also in php.ini is missing extension=php_curl.dll but I added and the same problem
View 4 Replies
View Related
Feb 5, 2010
I need some info on this title for class
View 1 Replies
View Related
Apr 16, 2010
I try to do a function which removes '#' from beginning of line. But if there is not '#' then add it on beginning of line. I try something like this, can you correct me?
Code:
awk '
!/^#/{ sub(/^[^#]*/,"#$0","'$line'")
}
/^#/{ sub(/#/,"","'$line'")
}'
View 14 Replies
View Related
Apr 1, 2010
anybody know how to zip a folder with 500mb?i want to create zip files with about 100mb each. please?
how do i do it in rar?whats the commandline ?
View 7 Replies
View Related
May 4, 2011
I may need to handle a Red Hat server soon and thought that has the same command line.Where do I start if I wanted to learn the command line? Especially, how do you connect to a Redhat / Fedora Server using console on windows and do C programming
View 6 Replies
View Related
Jan 31, 2011
How to add user through command line..??i used "useradd" and "passwd" and created an account but i can't login to it...
View 12 Replies
View Related
Dec 10, 2009
How do I update from FC10 to Fedora 12 from the command line.
View 2 Replies
View Related
Feb 9, 2011
i recently did some changes to my hard disk partitonand now linux is in hd0,6when i booted my pc,i got the grub commmand line interfaceso,I think that i need to edit grub.conf in fedora 14then at cmd i did this:
grub> root (hd0,6)
grub> kernel (hd0,6)/vmlinuz
file not found
[code]....
View 4 Replies
View Related
Sep 18, 2009
I decided on a whim to pursue certifications in other operating systems (currently 70-620 and 70-290 certified with Microsoft) and bought a book on Fedora 10 and installed it on my extra PC. First issue I ran into was that due to my graphics card being an ATI I needed to run in text mode (based off posts on these forums) then once I finally got everything under control and installed, it loads directly into Command Prompt (you folks call it GRUB right?) I can log in as root but I can't do anything this way.It won't even allow me to do things like accept the end user license agreement or create new users or see the GUI.
View 2 Replies
View Related
Nov 26, 2009
When I do System > Applications > Update System, it brings up a list of updates, and can tell me what each update is meant to fix (i.e. "fixes a bug in the flux capacitor so time travel works again (CVE-01234)"). How do I get similar info from the command line- I can't get it through yum, can I?
View 3 Replies
View Related
Dec 15, 2009
I'm experiencing a peculiar problem with Fedora 12. There is a ten-second delay when various command-line applications (e.g. ssh, wget) connect to remote machines for the first time. The delay is also seen when the remote machine name does not exist.Subsequent connections to the same remote machine are immediate.This isn't a DNS delay - the host and dig commands return immediately, for both existing and non-existant hostnames. It's not a reverse DNS lookup by the remote machine either: other Fedora 10 machines do not experience this delay and neither did my two Fedora 12 machines when they were running Fedora 10.
time this was something to do with nscd, the name service caching daemon. Stopping nscd changes the delay to five seconds, but subsequent connections are no longer immediate - there is again a 5 second delay. This implies that nscd is caching the names correctly.The delays are always precisely 10 seconds, or 5 seconds when nscd is not running. I have confirmed this with the time command. There appears to be no odd network traffic (tested with tcpdump) and nscd appears to be running normally. I've confirmed this with a Fedora 12 live CD as well - nscd is not started at boot, but once started, the machine behaves in exactly the way described above.
View 8 Replies
View Related
Dec 18, 2009
with that said i burned fedora 8, 10, and 11 checked the sha1 verified everything was fine i had originally installed fedora 8 on an old pc i had from windows XP without any problems messed with it some, upgraded to 10 again no problems. tired to update 11 got a message about ext3 not found ext4 not found, re installed 10 the loader loads up now i have a blank screen with a cursor it the left hand corner
again i had 10 installed fine prior to all this can any one point me in the right direction to solve this issue or am i way over my head trying to figure this stuff out. i have spent 3 days searching these forums.
i'm just not quite sure what i need to do. oh, i tried to install 8 again and it wouldn't take either. i think the 10 problem has something to do with the graphic driver it's a geforce 7400 nvidia and something to do with the grub, but like i said i get a blinking cursor and not quite sure how to access the grub or command line.
View 3 Replies
View Related
May 13, 2010
Any relatively easy user guide for the built in command line ftp program?
View 10 Replies
View Related
Jul 23, 2010
I use F13. How can I control the volume of my desktop ssh'ing into it from my laptop?
I use the laptop like a remote control to control my desktop through vnc while watching movies, but changing volume through this setup is a bit too cumbersome and clumsy. I tried alsamixer but it behaves strangely and doesn't change volume.
View 4 Replies
View Related
Aug 3, 2010
While trying to download themes for fedora 12,I get to the end it ask for my PW (in sudo) then says it is incorrect.When in graphic inter phase all my passwords are excepted.I've been reading the linux manuel. but can't find the anwser.If I am to put anouther password in where do I do that and how.
View 13 Replies
View Related
Jan 15, 2011
I have a list of domains in "domains.txt" , and I wanted to put an "nslookup" in front of each line and run it.. However I could not figure out a command for it.. Any ideas how to do this simple task?
View 7 Replies
View Related
Jan 27, 2011
I have a couple of backup scri ts. I use a rather cumbersome method to backup evolution. I finally realized I can backup evolution easily from its File Menu. Can I do this directly from the command line, so that I can use it in a script?
View 2 Replies
View Related
Mar 12, 2011
My USB ports are not easily accessible from where I use my PC, Sometimes, I eject or unmount some USB device, only to realize that I forgot to copy or delete some file. I don't want to get up, go to the CPU, unplug and replug the USB device, go back to my sit. I don't want to execute some boring mounting command as root just to mount this particular device. What I want is a fast command that just rescan my USB ports and mount everything where it should be, as if I have make the effort of standing up and unplugin and repluggin the USB device. Does this command exists
View 6 Replies
View Related
Mar 13, 2011
Is it possible in Fedora to suspend from the command line as a non-root user?
View 9 Replies
View Related
Mar 23, 2011
I hosed my installation of F14 by installing from some "experimental" repositories. Now I only get XDM at startup and an xterm on login. This would be fine if I could use yum to do some updates, but I have no network connection. I have been over the man page for nmcli dozens of times and none of the options there seems to start anything. I have also tried starting dhclient or using:
ifconfig eth0 up Nothing. So, is there a reliable way I can just connect to the network? This shouldn't be so hard.
View 8 Replies
View Related
May 25, 2011
I just installed new Fedora (F15) and I could not figure out how to suspend or hibernate from command line as user. The method I used in previous versions does not seem to work:
Code:
What is new method of command line suspending and hibernating as user?
View 6 Replies
View Related
Aug 24, 2011
I am using Fedora12 on desktop. I tried to change keymap from systm->preferences->keyboard->layout. This changes my keymap successfully. I want to perform above activity using command line for my powerpc target. My powerpc target environment do not have KDE,GNOME or any x-windowing support. which command and which files to be overlooked for this?
I want to change keyboard layout not keymap from command line.
View 12 Replies
View Related
May 31, 2010
I have the following shell:
export PATH=/u01/app/oracle/product/10.2.0/db_2/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
ftp -u -v -n -i > /bk01/exports/FTP_OUTPUT.LOG <<EOF
open 197.0.0.78
user orabackup orabackup
cd /media/disco/BK_Oracle
bin
put FILE00001.LOG
put FILE00001.DMP
quit
EOF
Executing the shell from command line, the output is:
Connected to 197.0.0.78.
220 Bienvenido al servicio FTP del servidor backup.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
331 Please specify the password.
230 Login successful.
250 Directory successfully changed.
200 Switching to Binary mode.
local: EXPO_APOT10G_20100531.LOG remote: EXPO_APOT10G_20100531.LOG 227 Entering Passive Mode (197,0,0,78,200,162) 150 Ok to send data. 226 File receive OK. 127498 bytes sent in 0.0022 seconds (5.7e+04 Kbytes/s)
local: EXPO_APOT10G_20100531.DMP remote: EXPO_APOT10G_20100531.DMP
227 Entering Passive Mode (197,0,0,78,175,141) 150 Ok to send data. 226 File receive OK. 458190848 bytes sent in 6.1 seconds (7.3e+04 Kbytes/s)
221 Goodbye.
Executing the shell from cron, the output is:
Connected to 197.0.0.78 (197.0.0.7.
220 Bienvenido al servicio FTP del servidor backup.
331 Please specify the password.
230 Login successful.
250 Directory successfully changed.
200 Switching to Binary mode.
local: EXPO_APOT10G_20100531.LOG remote: EXPO_APOT10G_20100531.LOG
local: EXPO_APOT10G_20100531.DMP remote: EXPO_APOT10G_20100531.DMP
221 Goodbye.
Why from cron the output no show the statistics in red ...?
View 2 Replies
View Related
May 30, 2011
Few day back I have installed fedora 15 in my system with gnome desktop environment. when i was using fedora 11 I used to login via command line by changing the /etc/inittab from run level 5 to run level 3 . once if i login when ever i need GUI, simply i will type startx command , but when i tried to change the runlevel in fedora 15 , It was confusing to me , there is no 1,2,3 is there . how can i change to command mode login in fedora 15..?
View 1 Replies
View Related
Dec 9, 2010
I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...
View 3 Replies
View Related