Urgent.News

What's breaking now, across thousands of outlets.

Tech

Developer cleverly shrank 2,600 lines of C into a six-line script but still ending up losing sleep

It wasn't the not-very-legal source code raid that caused it, but a colleague who punted a pager

Developer cleverly shrank 2,600 lines of C into a six-line script but still ending up losing sleep

In the tech support world, a developer named Tim made headlines by rewriting 2,650 lines of C code into just six lines of a shell script. His task arose from a need to fix a data transfer program that utilized a custom implementation of File Transfer Protocol (FTP).

Tim encountered a challenge in locating the FTP source code, as he had to rely on a Wide Area Information Server (WAIS) to search through remote databases. Due to the limitations of the era, with no Linux available and AT&T porting Unix source code to universities without public release, Tim spent considerable time researching and decoding the FTP code.

Once he had identified the necessary code, Tim crafted his script, which ran overnight to gather data from the telco's switches, process the raw information, and transfer it to a mainframe. The script featured an automated paging system that would alert him if it encountered connection issues with the switch or mainframe after three attempts.

Despite the script's functionality, the telco's networks were unable to utilize it effectively. Consequently, Tim's pager began buzzing intermittently, night after night for two weeks. After expressing his grievances to his manager, Tim was eventually relieved of the pager duty. However, the new pager recipient proved unreliable, further exacerbating the sleepless nights. Tim eventually had to reclaim the pager and face the inevitable nightly interruptions.

Written by urgent.news from The Register's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at theregister.com →

More in Tech

How to Install Drivers Using CMD in Windows

Learning how to install drivers using CMD in Windows allows you to add or update hardware drivers through Command Prompt without relying entirely on Device Manager.

  • Open Command Prompt as administrator
  • Navigate to driver folder using 'cd'
  • Use 'pnputil' to install drivers

More from Friday 13 November →