Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Scripting a bit of fun...
New Posts  All Forums:Forum Nav:

Scripting a bit of fun... - Page 2

post #11 of 18
Quote:
Originally Posted by herkalurk View Post

Perl isn't a shell, it's a programming language, bash and ksh are shells. tongue.gif

True, but Perl scripts are usually run from the shell, Perl can be used as a single line command (like sed and awk) and the language itself heavily borrows from shell scripts - so people often refer to perl as shell scripting.

Perl's integration with system shells is definitely tighter than any other language I've used
post #12 of 18
OP - could you write me a script that downloads the latest kernel from http://www.kernel.org and extracts it to a source directory, downloads the corresponding BFS patch from http://ck.kolivas.org/patches/bfs/ and applies it to the source, then copies the existing config from /boot, and runs 'make oldconfig' and waits for the results, then compiles and installs it into GRUB?

I've planned to do this myself, but you did offer! tongue.gif
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #13 of 18
Perl is really ugly to look at. I have written some Perl scripts before, but every time I look at them I have to spend a few minutes looking through what I had written to figure out what I'm actually doing. Is there a scripting language out there as easy to setup but better to read?
Lucy
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 950 3.503Ghz @ 1.04v ASUS Sabertooth X58 EVGA GTX 460 768mb 24.5GB Corsair Dominator 
Hard DriveCoolingOSMonitor
Intel 320 Noctua NH D14 Windows 7 Ultimate 64-bit ASUS VW246H 
MonitorPowerCaseMouse
ASUS VW246H OCZ ModXStream Pro 700W CoolerMaster HAF X 942 Logitech G9x 
  hide details  
Reply
Lucy
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 950 3.503Ghz @ 1.04v ASUS Sabertooth X58 EVGA GTX 460 768mb 24.5GB Corsair Dominator 
Hard DriveCoolingOSMonitor
Intel 320 Noctua NH D14 Windows 7 Ultimate 64-bit ASUS VW246H 
MonitorPowerCaseMouse
ASUS VW246H OCZ ModXStream Pro 700W CoolerMaster HAF X 942 Logitech G9x 
  hide details  
Reply
post #14 of 18
Quote:
Originally Posted by Sequences View Post

Perl is really ugly to look at. I have written some Perl scripts before, but every time I look at them I have to spend a few minutes looking through what I had written to figure out what I'm actually doing. Is there a scripting language out there as easy to setup but better to read?

Sounds like you'd prefer Python. It's practically pseudo-English
post #15 of 18
Quote:
Originally Posted by Plan9 View Post

Sounds like you'd prefer Python. It's practically pseudo-English

python.png
post #16 of 18
Quote:
Originally Posted by Plan9 View Post

Quote:
Originally Posted by Sequences View Post

Perl is really ugly to look at. I have written some Perl scripts before, but every time I look at them I have to spend a few minutes looking through what I had written to figure out what I'm actually doing. Is there a scripting language out there as easy to setup but better to read?

Sounds like you'd prefer Python. It's practically pseudo-English

+1
Python is awesome - all the power of an OO language like C++ or Java, but none of the complicated crap that puts the newcomers off (imo)
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #17 of 18
+2, Python > Perl

Python is very similar to Perl, except Python is human readable.
    
CPUGraphicsRAMHard Drive
Intel Core i5 3210M Intel HD 4000 + ASUS GTX 750 Ti (eGPU) 8GB GSkill DDR3 128GB Crucial M4 SSD 
OSMonitorKeyboardMouse
Windows 7 + OS X 10.8 + Ubuntu 12.04 22" Samsung LED Logitech G15 v2 Gigabyte GM-8000 
Audio
Logitech Surround Sound 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Intel Core i5 3210M Intel HD 4000 + ASUS GTX 750 Ti (eGPU) 8GB GSkill DDR3 128GB Crucial M4 SSD 
OSMonitorKeyboardMouse
Windows 7 + OS X 10.8 + Ubuntu 12.04 22" Samsung LED Logitech G15 v2 Gigabyte GM-8000 
Audio
Logitech Surround Sound 
  hide details  
Reply
post #18 of 18
Quote:
Originally Posted by TrueTroop View Post

+2, Python > Perl
Python is very similar to Perl, except Python is human readable.

Python and Perl are worlds apart. The only similarity is they're both procedural and compiled to byte-code - which pretty much describes most languages these days.

Personally I prefer C-syntax over white space delimited languages and quite like the randomness of Perl (and thus the flexibility it offers). But it's just a matter of preference really. Plus as I've been programming for over 20 years and in more languages than I care to remember, reading source code (even Perl) is about as second nature to me as English. But as I said already, it's just personal preference - there's for's and against's for both languages.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Scripting a bit of fun...