General :: Meaning / Purpose Of Using "~" Symbol In Scripting Language?
Sep 15, 2009I would like to know the meaning or purpose of using "~" symbol in scripting language..The line is uri=~"sip:q@192.168.64.75"..
View 6 RepliesI would like to know the meaning or purpose of using "~" symbol in scripting language..The line is uri=~"sip:q@192.168.64.75"..
View 6 RepliesWhat is the purpose of bash scripting? Is it just for file manipulation?
View 4 Replies View RelatedThe last time I wrote code for anything was about 15 years ago using Turbo Pascal. I would like to get back into it, most likely to create some mobile apps or enhance web sites. What is the best general purpose language to learn? And what is a good method for learning, preferably free?
View 1 Replies View RelatedSo for example, I uses VBscript to script out my tasks in Windows, and more recently PowerShell.From a Linux Admin's point of view, what scripting would he/she need to know? Would being proficient in Bash be sufficient or should you supplement that with something else? (if so, what is that something?)
View 3 Replies View RelatedI have been working on CentOS from the last 6 months. I want to know that which scripting language is best to learn.I heard about Python and bash scripting.And I think Python is fastest among others.
View 8 Replies View RelatedI want to know which is the best scripting language right now and what you guys think its going to be the best or most used in the future, that is, in about 5-10 years. Take into account system administration and applications. This are the languages i had in mind, add more if you think other scripting languages are better or worth considering.
View 14 Replies View RelatedWe have to (re)write a bunch of scripts to download files from remote ftp servers, where we won't know the names beforehand; move the files to an archive folder on the FTP server; copy the files to the correct servers on our LAN; and log the file information in Oracle.Our current scripts are for a windows product called ScriptFTP that provides a nice little language. It does everything except the logging, but we're wanting to get rid of Windows.
I have recently been given the job of maintaining the code, and I'm looking for a good language for simple, robust ftp scripts that will work on Linux. We have some customers with remarkably unreliable FTP servers. If necessary, I can write another program to handle the logging to Oracle. I'm usually a C++ developer, so a similar syntax is a bonus. I also want to be able to hand this over to an entry-level programmer later.
So far, I'm intrigued by PHP, but I've hardly had a chance to look at it for any scripting. I like the idea of being able to loop through the files individually and even be able to skip over anything that looks like it's currently being written (either based on the file name or date/time). I've thought about writing something in C++ that would take a simple config file instead of a full blown script. However, I don't want the maintenance, unless someone writes a quality FTP library that is inexpensive (hopefully free) for commercial use.
Which scripting language to learn for Linux Administration? Python, Ruby, Perl, or PHP?
View 7 Replies View RelatedGroovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies View Relatedi recently got a french msi wind U100x running on linux suse enterprise 10 sp1. (i am french and wanted a light netbook with french keyboard)i am totally new to linux and i believe that msi wind is not helping.because i am more used to english for settings, i set the main language to english, but it seems that it automatically reconfigures my keyboard mapping to english as well, so that azerty becomes qwerty.i reset it back to french, so now my keyboard is french, but so is the system.is there a way to differentiate keyboard from main user setting language?
View 3 Replies View RelatedApache doesn't start with libedit.so.0.0.34 ( from libedit0-3.0.snap20090923-4.1.x86_64 ).
Code:
[Tue Dec 15 16:20:51 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
/usr/sbin/httpd2-prefork: symbol lookup error: /usr/lib64/libedit.so.0: undefined symbol: tgetent
Solution: I copied /usr/lib64/libedit.so.0.0.27 from a previous install and symlinked /usr/lib64/libedit.so.0 to it.
ive made a slight mistake on my Ubuntu 9.10 64bit. I was trying to get Voodoo Motion Tracking software to work, and it was having trouble locating some Qt Libs, so I decided it was a good idea to move its included libs into /user/lib32 directory. Voodoo now works, but Skype instead comes up with:
Code:
skype: symbol lookup error: /usr/lib32/libQtDBus.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv Skype was installed using their own provided 64bit .deb - it was previously working fine.
The most recent update impacted my thunderbird-3.0. When launched I get these error messages
/usr/lib/thunderbird-3.0.3pre/thunderbird-bin: Symbol `SSL_ImplementedCiphers' has different size in shared object, consider re-linking
/usr/lib/thunderbird-3.0.3pre/thunderbird-bin: symbol lookup error: /usr/lib/libnssutil3.so.1d: undefined symbol: PL_ClearArenaPool
I can only assume the libnssutil3 library was upgraded and this broke the library call in the thunderbird-3.0.
I performed a yum update and now my yum is not working and I am unable to start my apache processes (in a dmz configuration).This is the error I am getting from yum.
yum clean
Traceback (most recent call last):
File "/usr/bin/yum", line 4, in ?
import yum
[code]....
I'm running Ubuntu 10.10 and was looking for software to mix mp3's. I want to try mixxx (found here) I installed the most recent package by using the ppa of the project (as described here) Install seems to be ok (no error messages)But when I try to run mixxx from the menu nothing happens. Nothing. Running it from the terminal with the command
Code:
mixxx
I get this error message:
Quote:
mixxx: symbol lookup error: /usr/lib/libQtNetwork.so.4: undefined symbol: _ZN16QIODevicePrivate4peekEPcx
I can't remember what "ISO" means. I've been busy with other projects, and I forget what release of Ubuntu I'm using. The computer I use the most is running Windoze 7, and I have Ubuntu running on two other machines but use them infrequently.
View 4 Replies View RelatedI have seen the following command:
$ kill %1
What is the usage of this statement?
can anybody tell the use of make file in Nis server.
View 1 Replies View RelatedI've always been confused about this issue of boot partitions. In the past when I install linux I usually have 2-3 partitions.
1. Main OS partition mounted on /
2. Storage partition mounted on /home
3. Swap partition
Why and when would I need to have a boot partition? Even if I dual boot two OSs, I just make one more partition for that other OS. So what's the purpose of a boot partition?
Can you explain me what is purpose of shebang in scripts? I have noticed that my scripts will run without shebang. i.e. When i save my crontab file it says that scripts will be executed in i.e. /bin/sh shell. So, what is the point if I put #!/bin/ksh at the start of script?
View 8 Replies View RelatedI attempted to run various cron jobs as root - just general server make-tidy stuff. But if I edit the /etc/crontab file directly, these tasks don't get run. However, if I use crontab -e as root, these jobs appear to work. Any idea why this might be the case? Also, I understand that user cron jobs are stored in /var/spool/cron/<user> (including root). If this is the case, what's the purpose of the /etc/crontab file?
View 5 Replies View RelatedPreviously after doing aptitude upgrade, my pidgin seems broken with no gui shown. So I decided to download the latest source from pidgin website and build it from source, but I think I made situation worse because it then complained that ssl lib was needed. Then I removed the libpurple (e.g. aptitude purge libpurple0 libpurple-bin libpurple-dev) and reinstalled pidgin (aptitude install pidgin). Now it shows the error
pidgin: symbol lookup error: pidgin: undefined symbol: purple_media_element_info_get_type
I searched on the internet and can not find a solution. The clues on the internet says that's because the piding I use is the older version of libpurple. But I think I've removed all with purge and reinstalled it. Maybe some legacy binary is referenced. What or where it might be? Or where there may contain related information.
I am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run
Code:
ndiswrapper -l
i am getting the error
Code:
/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv
I used the following command
Code:
file /usr/bin/mawk
Output is
[code]...
In shell scripting, what do or what does this symbol do or mean ? "."(octet), ";" (semicolon)? Would really like to know? Cause I saw a written script if [ -f /etc/file ];then. . /etc/file. Wondering, the "." is meant to be source, so is "." the same thing as "source" ?
View 2 Replies View RelatedKernel 2.6.21.5, Slackware 12.0top: procps 3.2.7Hi:Running top, I read, in the summary area,
Code:
root@darkstar:~# top
........
[code]....
I have a folder that may contain text documents, pictures, MP3s, video clips, all sorts of stuff. Supposing that, within reason, I'm not too bothered how long it takes to compress and uncompress them. And suppose I don't care if it's free or open source (well, has to be free as in beer). What's the best compression format/algorithm (whatever it is that I install in Synaptic and choose from the drop down menu in the compression tool) I should use?
View 9 Replies View RelatedI want to create a general switch that I can use to send a signal to my ubuntu server when it is activated/deactivated. Here's an example: I want to know when a certain door is open, so I can have a switch closed when the door is closed and opened when the door is opened. When opened or closed, the computer will receive a signal and I can have some software intercept this signal and process it to my liking (i.e. ring a bell/text message me/email me/etc).
I know I will have to create a simple driver, software to make use of this signal, etc... I am willing to do whatever it takes to make it happen. I'm just wondering if anyone can point me in the right direction as far as which interface I should use to communicate with my server (i.e. usb, serial), which references I should read, and any personal experience you have with something like this...
What is the purpose of libc in an operating system?
Is the libc is common for all OS or it is different for different OS!?
I mean source of libc build for RH is same for Ubuntu !?
I have been trying out in learning with logrotate command and logrotate configuration file )logrotate.conf custom logfile for an process is 'test.log'
Code:
#cat /etc/logrotate.d/test
/var/log/test.log {
rotate 4
[code]....
whenever the log file (test.log) exceeds 100M a new file will be created with the file name as test.'date'.'gz'(new file is created with a current date and in a compressed format of gz) and also with permission mentioned above). I really dont know what is the role of rotate( will this be carried on only for next 4times i mean upto 400MB; (4times*file reaches 100MB)? and also what could be the purpose of postrotate?