Linux command to get time in milliseconds
location: linuxexchange.com - date: May 14, 2013
I made a search in SO. And I did not get answer for this question I get only C functions to get time in millisecond in Linux.
Is there command in Linux to get the time in milliseconds?
How to get exit code and stdout of a linux command at the same time
location: linuxexchange.com - date: August 27, 2015
I execute a curl [url] command in a Linux shell script. I want to get this command's exit code and its output at the same time without using a temporary file.
Is there any method to do that?
Calling configuration file ID into Linux Command with Date Time from Python
location: linuxexchange.com - date: January 1, 1970
I'm trying to write a script to get the following outputs to a folder (YYYYMMDDHHMMSS = current date and time) using a Linux command in Python, with the ID's in a configutation file
1234_YYYYMMDDHHMMSS.txt
12345_YYYYMMDDHHMMSS.txt
12346_YYYYMMDDHHMMSS.txt
I have a config file with the list of ID's
id1 = 1234
id2 = 12345
id3 = 123456
I want to be able to loop through these in python and incorporate them into a linux command.
Currently, my linux commands are hardcoded in python as such
import subprocess
import datetime
now = datetime.datetime.now()
subprocess.call('autorep -J 1234* -q > /home/test/output/1234.txt', shell=True)
subprocess.call('autorep -J 12345* -q > /home/test/output/12345.txt', shell=True)
subprocess.call('autorep -J 123456* -q > /home/test/output/123456.txt', shell=True)
print now.strftime("%Y%m%d%H%M%S")
The datetime is defined, but doesn't do anything currently, except print it to the console, when I want to incorporate it into the output txt f
Add some specific time while using the linux command “date”
location: linuxexchange.com - date: January 1, 1970
In linux, date can help me to print the current time. If want to print the current time + 1 hour, what option should I give?
Linux Command Line Learning Resources
location: ubuntuforums.com - date: January 14, 2012
The information in this thread has been moved to https://help.ubuntu.com/community/CommandLineResources
A thread for discussion of the wiki page only can be found here
http://ubuntuforums.org/showthread.php?t=2015424
Thread closed.
Thought it'd be handy to compile a thread with online resources for new Linux users who want to learn the command line. I'll link it in my signature.
MASTER INDEX: Glance over this briefly before posting, to see if we can avoid duplicates. And if we do get duplicates, no big deal. I'll try and keep this list updated with your new posts.
Below are the links, and the number at the end is the post in which the resource was suggested.
Sites:
Linux Command #4
BashGuide BashPitfalls BashFAQ - Greg's Wiki #4
Using The Terminal #2
Command Line How To #2
Advanced Command Line How To #2
LINUX: Rute User’s Tutorial and Exposition by Paul Sheer #4
The Linux Users' Guide by Larry Greenfield #4
An A-Z Index of the Bash command line #4
Gnu Manuals #4
The Li
Linux Command Line Learning Resources
location: ubuntuforums.com - date: July 3, 2012
Please use this thread for discussion regarding
https://help.ubuntu.com/community/CommandLineResources
The old thread detailing this can be found at http://ubuntuforums.org/showthread.php?t=1909108
Thank you.
Linux command line tool to copy files over ssh
location: ubuntuforums.com - date: August 1, 2009
Hi,
Present all my site are running at VPS server. i am planing to move all those 2 shared hosting.
Anyway can me help me @ Server 2 Server copy files.
GNU Linux Command similar to QNX "ditto"
location: linuxquestions.com - date: January 4, 2013
I used to work on a bunch of QNX machines and used a utility called "ditto". It is not the same as GNU Linux "ditto". This is from the QNX documentation:
Quote:
expect execute linux command
location: linuxquestions.com - date: April 24, 2012
Hi
I wrote a script in "expect" hoping it can login to remote host and execute a simple "pwd" command. But it seems its not working. Can anyone point me in the right direction. The program logs in but does not execute a command or so I dont see it on my output screen.
-----------------------
#!/usr/bin/expect
set ip {x.x.x.x}
set cmd {pwd}
spawn ssh -q "$ip";
expect -re ".*\#";
send "$cmd\r";
-----------------------
Need a linux command which will give me Manufacturer and Model of the Linux box
location: linuxquestions.com - date: December 13, 2007
Hello Team,
I need a linux command which will give me Manufacturer and Model of the Linux box.
The constraint is, it should work for both root and non root user.
Thanks is advance for your help.
Regards,
Adastane.
please wait...
Page: 1 2 3 4 5 6 7 8 9 10