[SOLVED] Command Line Clock

I remember seeing a forum topic a while back where someone posted a command to give a clock at the command line that would update every second and whatnot, but I can't seem to find the topic. IIRC, it was just `watch` and a command that actually rendered the current time (it wasn't `date`). I can't seem to find the command by searching through man pages, so hopefully someone knows what I'm talking about?
Last edited by arew264 (2009-05-23 14:53:30)

skottish wrote:
Just to show off how boring I am:
watch -n 1 -t date
Woaah! That's perfect.
How can it be that this watch command slipped my attention in ten years of unix/linux use???
Thanks, scottish!

Similar Messages

  • [solved]Command line script to equalise volume levels of all mp3 files

    Hello guys,
    I have a bunch of mp3 files within a folder. Unfortunately they have unequal volume levels. Some of them are far too low, others too loud.
    Is there a simple command line script to equalise all of them?
    Regards
    Robert
    Last edited by orschiro (2012-12-30 17:44:59)

    I remember I found such a script a long time ago. I suppose it still works, here it is http://codepad.org/MLu1iscD. Please tell me if it works for you. By the way, it depends on mp3gain and python2-eyed3.
    ps: As far as I can see, this script doesn't change the mp3 files itself, but stores the new volume in the id3 tag. This means, that you won't corrupt your files in any way, but the player needs to be able to get the volume information and adjust it. The script measures both the album and the track gain. Which one is used can be configured in the player.
    Last edited by Army (2012-12-30 16:39:27)

  • [solved] command line music player

    Hi,
    i'm looking for a very simple command line music player like mpg123 but with a server option like mocp/mpd.
    Other than mocp or mpd i want it for playing files on-the-fly. Like browsing around and playing files i see in the current directory, queueing them, maybe with a curses interface like ncmpc.
    As far as i know, mpg123 can't queue and doesn't run in the background per default. mocp on the other hand comes very close but i don't think it can play files out of the current working directory like i want it.
    Do you know a tool that fits my description?
    Thanks in advance,
    demian
    Last edited by demian (2010-06-01 18:21:05)

    Runiq wrote:
    brisbin33 wrote:
    fwiw, i have a script i call playnow which accepts a file path and plays it through mpd.  i use it for one-off downloaded content or whatever.  it just adds it to a temp folder, quickly updates the db, adds the temp folder to the current playlist (queuing) and plays it.
    it's been working well for me.  i also hear mpd accepts the file:/// uri scheme which kinda takes care of this usage case too.
    As far as I know, MPD's database is updated automatically via inotify as soon as a file is added, so I think you don't even need to update before playing.
    sounds great in theory, but i'm not so sure about in practice.
    for inotify to pick up the new file(s) and mpd to update itself all between bash executing `ln -s` and `mpc add` would be... impressive.  calling `mpc --wait update` manually means i only wait exactly as long as the update requires.
    thanks for the advice though, maybe i'll test it out and see.

  • [SOLVED] gcc: error: unrecognized command line option '-V'

    Hi.. this is my first post but I always read the forum to solve my problem! ;) thank you to all!!!!   sorry for my bad english in advanced...
    This is my problem:
    I have Archlinux x86_64 with Gnome (last version).
    I try to install the driver for my printer epson sx218 but when I compile the bash show:
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    now, I see the config.log file and I see the line:
    gcc: error: unrecognized command line option '-V'
    my makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl, -O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j2"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(fakeroot !distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    this is my full config.log:
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    It was created by epson-inkjet-printer-filter configure 1.0.0, which was
    generated by GNU Autoconf 2.61. Invocation command line was
    $ ./configure LDFLAGS=-Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed --prefix=/opt/epson-inkjet-printer-workforce-320-sx218
    ## Platform. ##
    hostname = localhost
    uname -m = x86_64
    uname -r = 3.9.3-1-ARCH
    uname -s = Linux
    uname -v = #1 SMP PREEMPT Sun May 19 22:50:29 CEST 2013
    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown
    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /bin
    PATH: /usr/local/sbin
    PATH: /usr/sbin
    PATH: /sbin
    PATH: /usr/bin/core_perl
    ## Core tests. ##
    configure:1989: checking for a BSD-compatible install
    configure:2045: result: /usr/bin/install -c
    configure:2056: checking whether build environment is sane
    configure:2099: result: yes
    configure:2127: checking for a thread-safe mkdir -p
    configure:2166: result: /usr/bin/mkdir -p
    configure:2179: checking for gawk
    configure:2195: found /usr/bin/gawk
    configure:2206: result: gawk
    configure:2217: checking whether make sets $(MAKE)
    configure:2238: result: yes
    configure:2480: checking for gcc
    configure:2496: found /usr/bin/gcc
    configure:2507: result: gcc
    configure:2745: checking for C compiler version
    configure:2752: gcc --version >&5
    gcc (GCC) 4.8.0 20130502 (prerelease)
    Copyright (C) 2013 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    configure:2755: $? = 0
    configure:2762: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/src/gcc-4.8-20130502/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
    Thread model: posix
    gcc version 4.8.0 20130502 (prerelease) (GCC)
    configure:2765: $? = 0
    configure:2772: gcc -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:2775: $? = 1
    configure:2798: checking for C compiler default output file name
    configure:2825: gcc -march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed conftest.c >&5
    cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'
    configure:2828: $? = 1
    configure:2866: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "epson-inkjet-printer-filter"
    | #define PACKAGE_TARNAME "epson-inkjet-printer-filter"
    | #define PACKAGE_VERSION "1.0.0"
    | #define PACKAGE_STRING "epson-inkjet-printer-filter 1.0.0"
    | #define PACKAGE_BUGREPORT "epson@localdomain"
    | #define PACKAGE "epson-inkjet-printer-filter"
    | #define VERSION "1.0.0"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:2873: error: C compiler cannot create executables
    See `config.log' for more details.
    ## Cache variables. ##
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
    ac_cv_env_CPPFLAGS_set=set
    ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=set
    ac_cv_env_CXXFLAGS_value='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_F77_set=
    ac_cv_env_F77_value=
    ac_cv_env_FFLAGS_set=
    ac_cv_env_FFLAGS_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value='-Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed'
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/usr/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=yes
    ## Output variables. ##
    ACLOCAL='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run aclocal-1.10'
    AMDEPBACKSLASH=''
    AMDEP_FALSE=''
    AMDEP_TRUE=''
    AMTAR='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run tar'
    AR=''
    AUTOCONF='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run autoconf'
    AUTOHEADER='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run autoheader'
    AUTOMAKE='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run automake-1.10'
    AWK='gawk'
    CC='gcc'
    CCDEPMODE=''
    CFLAGS='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
    CORE_LIBRARY_PATH=''
    CORE_RESOURCE_PATH=''
    CPP=''
    CPPFLAGS='-D_FORTIFY_SOURCE=2'
    CUPS_IMAGE_LIBS=''
    CUPS_LIBS=''
    CUPS_SERVER_DIR=''
    CXX=''
    CXXCPP=''
    CXXDEPMODE=''
    CXXFLAGS='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR=''
    DL_LIBS=''
    DSYMUTIL=''
    ECHO='echo'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    F77=''
    FFLAGS=''
    GREP=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LDFLAGS='-Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LN_S=''
    LTLIBOBJS=''
    MAKEINFO='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run makeinfo'
    NMEDIT=''
    OBJEXT=''
    PACKAGE='epson-inkjet-printer-filter'
    PACKAGE_BUGREPORT='epson@localdomain'
    PACKAGE_NAME='epson-inkjet-printer-filter'
    PACKAGE_STRING='epson-inkjet-printer-filter 1.0.0'
    PACKAGE_TARNAME='epson-inkjet-printer-filter'
    PACKAGE_VERSION='1.0.0'
    PATH_SEPARATOR=':'
    RANLIB=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STDCPP_LIBS=''
    STRIP=''
    VERSION='1.0.0'
    ac_ct_CC='gcc'
    ac_ct_CXX=''
    ac_ct_F77=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE=''
    am__fastdepCXX_TRUE=''
    am__include=''
    am__isrc=''
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build=''
    build_alias=''
    build_cpu=''
    build_os=''
    build_vendor=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='$(SHELL) /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='/usr/bin/mkdir -p'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/opt/epson-inkjet-printer-workforce-320-sx218'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    ## confdefs.h. ##
    #define PACKAGE_NAME "epson-inkjet-printer-filter"
    #define PACKAGE_TARNAME "epson-inkjet-printer-filter"
    #define PACKAGE_VERSION "1.0.0"
    #define PACKAGE_STRING "epson-inkjet-printer-filter 1.0.0"
    #define PACKAGE_BUGREPORT "epson@localdomain"
    #define PACKAGE "epson-inkjet-printer-filter"
    #define VERSION "1.0.0"
    configure: exit 77
    any idea to solve? I searched around but can not find anything.. :'(
    Last edited by liberato83 (2013-05-24 13:25:18)

    Are you using AUR https://aur.archlinux.org/packages/epso … 320-sx218/ ?
    I updated the PKGBUILD to remove the line that says 'gcc -V >&5'  from the configure file
    libtoolize
    sed -i 's/gcc -V >&5//' configure
    chmod +x configure
    but it still doesn't build:
    ==> Starting build()...
    libtoolize: putting auxiliary files in `.'.
    libtoolize: linking file `./ltmain.sh'
    libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
    libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
    libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking how to recognize dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether accepts -g... no
    checking the maximum length of command line arguments... 1572864
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    (cached) (cached) checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for dlopen in -ldl... yes
    checking for ANSI C header files... (cached) yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking return type of signal handlers... void
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memset... yes
    checking for strdup... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating src/raster/Makefile
    config.status: creating src/raster/blendSource/Makefile
    config.status: creating src/memory/Makefile
    config.status: creating src/pagemanager/Makefile
    config.status: creating src/filteropt/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    cd . && /bin/sh /home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run automake-1.10 --gnu
    /home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing: line 54: automake-1.10: command not found
    WARNING: `automake-1.10' is missing on your system. You should only need it if
    you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
    You might want to install the `Automake' and `Perl' packages.
    Grab them from any GNU archive site.
    cd . && /bin/sh ./config.status Makefile
    config.status: creating Makefile
    cd . && /bin/sh /home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run autoheader
    rm -f stamp-h1
    touch config.h.in
    cd . && /bin/sh ./config.status config.h
    config.status: creating config.h
    make all-recursive
    make[1]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0'
    Making all in src
    make[2]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
    cd .. && /bin/sh ./config.status src/Makefile depfiles
    config.status: creating src/Makefile
    config.status: executing depfiles commands
    make[2]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
    make[2]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
    Making all in memory
    make[3]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
    cd ../.. && /bin/sh ./config.status src/memory/Makefile depfiles
    config.status: creating src/memory/Makefile
    config.status: executing depfiles commands
    make[3]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
    make[3]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../ -D_FORTIFY_SOURCE=2 -fsigned-char -O2 -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c -o memory.lo memory.c
    ../../libtool: line 482: CDPATH: command not found
    libtool: Version mismatch error. This is libtool 2.4.2, but the
    libtool: definition of this LT_INIT comes from an older release.
    libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
    libtool: and run autoconf again.
    make[3]: *** [memory.lo] Error 63
    make[3]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0'
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...

  • [SOLVED] How to Crop an MP4 Video via Command-line?

    I have ffmpeg, mpg123, and mencoder. Does anyone know of a way I could use any of those to crop an mp4 video via command-line? I am trying to take off the black space above and below a video. Thanks in advance!
    Last edited by tony5429 (2009-04-12 00:12:57)

    I don't think it's possible to crop without re-encoding, but you can crop from the command line with ffmpeg and mencoder. Not sure about mpg123 - I think that's for playing audio but I could be wrong there.
    Anyway, with ffmpeg you can do cropping by using -croptop, -cropbottom, -cropleft, and -cropright. So if you wanted to crop 16 pixels off of the top and the bottom, your command line would look something like this:
    ffmpeg -i <input file> -croptop 16 -cropbottom 16 <video encoding options> <audio encoding options> <output file>
    With mencoder you use the "crop" video filter, like this:
    mencoder <input file> -o <output file> -vf crop=320:208:0:16 <other options>
    where the "320:208:0:16" means that the resulting picture is 320 pixels wide, 208 pixels high, and the 0:16 is the x,y position of the cropped area.
    These command lines are just really very basic examples - ffmpeg and mencoder have a LOT of options. Way too many to explain here. If you don't believe me, just try reading through the mencoder man page sometime. (There's an online version of it at: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
    Hope this helps!!

  • Command line display disappears during boot [solved]

    I've brought my machine up to date with systemd, and have run into this latest problem.  I boot with syslinux.  My machine has started giving me kernel panics when I boot with the primary configuration, which had
    acpi=off
    in the append line, I believe to address this very problem.  If I boot with the fallback, which does not have this entry, I get a boot that I can access over ssh, but the command line display disappears after running through a few lines.  Commenting out the acpi language in the primary gives the same result as the fallback.
    If I can't boot with it in there, and can't see the screen with it out, what do I do?
    [edit]
    I was looking for some information on the boot process to explain what changes during the boot to cause the screen to go from visible to invisible.  When it used to boot, I remember a font change happening part way through the boot, but don't remember what caused it.  Searching for the boot process on the wiki only gives the systemd page, and I didn't find anything there that was helpful in this regard.
    I am downloading a live iso and will try booting with that to see if the display issues are present using that approach.
    [edit]
    Ok, it had nothing to do with acpi.  I was running the nvidia driver.  My machine has a processor with a gpu, and apparently it decided to hand off to my intel gpu, which has nothing attached to it, instead of sticking with the nvidia.  May have to do with KMS (wiki.archlinux.org/index.php/Kernel_Mode_Setting).  So I deleted the nvidia driver per the wiki instructions and added the nouveau driver, enabled the KMS per the instructions, and now I have a command prompt.
    Last edited by timm (2013-01-11 20:13:01)

    i did  systemd.unit=multi-user.target at the boot loader .  https://wiki.archlinux.org/index.php/Systemd  for more options

  • [SOLVED] Vocabulary Trainer or Learning Archit. for the Command Line

    I am writing my PhD in English which actually is not my native language. So vocabulary and expression learning is an important task. When I came to Arch part of the decision was also ralted to my whish to work as close to the Command Line as possible. So I am looking everywhere to find a vocabulary trainer for the shell. Unfortunately I was not able to find even one. I looked:
    - at the Arch Wiki 'List of Applications'
    - at the Ubuntu Wiki 'Shell Applications'
    - at http://www.jaredandcoralee.com/CLIapps.html
    - searched both the Arch and Ubuntu Wiki
    - searched Google for 'Vocabulary Trainer cli', 'Vocabulary Tainer terminal emulator', 'Vocabulary Trainer Linux Shell'
    Is anyone aware of such an application for the shell or has anyone ideas for a kind of work around using a combination of existing software/shell scripts/shell commands.
    Thanky you.
    PS: Of cause I could just start something like simple Python Script working with a csv file or something comparabla. But if possible I would like to avoud this DIY solution.
    Last edited by cutuchiqueno (2013-08-30 10:12:06)

    Trilby wrote:
    I don't know of any training tools of that variety.  Generally this is a "learn by doing" situation - which fits with language learning as well: flash cards can seem handy, but to really learn a language, you just need to start using it.
    To "just start using" the shell, I'd suggest greg's wiki
    Ok, I think there is a misunderstanding. My question does not relate to learn to use the shell. Although far from being perfect I already feel quite comfortable with the shell and its ways to interact with the system.
    It's really more basic. I have to improve my English. And in this context I need a vocabulary trainer, to learn english words and english academic expressions, nothing more. And as I am feeling quite close to the shel it would have been nice to train english vocabulary on the shell and not with something like KWordQuiz, etc.
    Sorry if my description was ambiguous. So the question still is, is there a vocabulary trainer for self defined english vocabulary to train in the shell?
    PS: Of cause also learning english is something you mostly do by learning. But I will do  that anyhow as I am writing the PhD in english and as I am presenting in English. Anyhow I experienced that there is a part in foreign language learning where there is no real subsitutde for learning it with a vocabulary trainer.

  • [SOLVED] QEMU networking command line

    Hello,
    my virtual machine does not have any network devices, when I explicitly give a netdev user,id=... (which is the default, when I remember correctly). This is the commandline which I tried:
    qemu-system-x86_64 -enable-kvm -smp 2 -m 384 -netdev user,id=guestnet,restrict=off,net=192.168.1.0/24,dhcpstart=192.168.1.5,hostfwd=tcp::12345-:22 server
    But lspci and ip link don't show any devices. This commandline has exactly the same effect (and this should be the default, when no option is given):
    qemu-system-x86_64 -enable-kvm -smp 2 -m 384 -netdev user,id=guestnet server
    My guest only finds a network device when there are no netdev user,id=... arguments.
    What is wrong with the command lines above?
    Thanks for your help.
    Last edited by Rachus (2013-06-02 10:45:07)

    65kid wrote:
    add
    -net nic
    Well, then I have a device, but the dhcp server of qemu does not work anymore.
    neilzium wrote:IIRC each -netdev argument needs a corresponding -device argument. Here's an example.. This seems to be the newer, preffered method compared to -net and is used by libvirt. There may be no difference for user mode networking though.
    Thanks, works perfectly. Sometimes it is hard to find something in the documentation.

  • [solved]can't run java apps from command line

    Every Java program that i've tried to run from command line gives me a error message like this:
    augusto java% java Test
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Caused by: java.lang.ClassNotFoundException: Test
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: Test. Program will exit.
    `java Test.class` doesn't work too.
    but, the exact same code work from eclipse, am I missing something?
    Some info:
    % ls Test*
    Test.class Test.java Test.java~
    % cat Test.java
    public class Test{
    public static void main(String[] args){
    System.out.println("doesn't work");
    % echo $PATH
    /home/augusto/.bin:/home/augusto/.bin:/home/augusto/GNUstep/Tools:/opt/GNUstep/Local/Tools:/opt/GNUstep/System/Tools:/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
    Last edited by hack.augusto (2009-10-27 00:57:53)

    also make sure that you current directory is in your classpath.
    eg
    export CLASSPATH=".:$CLASSPATH"
    java Test
    your issue is more likely to be classpath related, as java doesn't read the path variable, and the java executable is found
    Last edited by bruce (2009-10-27 01:02:51)

  • [SOLVED] How to Create an Image from UTF8 Text via Command-line

    As the title points out, I'm trying to create an image from unicode text via command line. I tried...
    convert -pointsize 48 -size 400 caption:测试用 text.png
    But that results in question marks for the Chinese characters. So searching around online I discovered that I needed to specify a font which could display the characters. The characters show up just fine in Firefox, KDE, Kate, Terminal, etc so I know I have a font which can render them. I thought it might be DejaVu but this also resulted in question marks...
    convert -font /usr/share/fonts/TTF/DejaVuSerif.ttf -pointsize 48 -size 400 caption:测试用 text.png
    Any ideas?
    Last edited by tony5429 (2011-01-31 23:17:41)

    DejaVu doesn't contain those Chinese glyphs at all, so please don't blame ImageMagick for not rendering them.
    So, Firefox, Kate, Terminal and the others you stated to use DejaVu, if encounter these characters, fall back to some other fonts to render them. These fonts are, however, not vector, but bitmap fonts. (This can be seen if you increase text size (Ctrl++ in Firefox): the Chinese characters don't change, they remain of their inherent size.)
    Actually, e.g. /usr/share/fonts/misc/18x18ko.pcf.gz definitely contains the three example characters, so the mentioned apps may use this font as fall back.
    Apparently ImageMagick doesn't handle bitmap fonts (I'm not sure), so you won't be able to hit your original target. Anyway, since you tried to parse "-pointsize 48", you wouldn't be satisfied with the font size.
    Your only choice seems to be using the above mentioned CJK-approved TTFs.
    EDIT: typo
    Last edited by barto (2011-01-28 21:52:33)

  • [Solved] Assembly - Passing Integer Command Line Parameters

    This is as good a place to ask as any I suppose, so here goes.
    I'm really only interested in knowing if it is at all possible to push actual values, in this case integers, on the stack from the command Line, i.e. passing arguments and if so how, because as far as I can gather, it is simply impossible to pass anything other than strings.
    Yes I am a noob at assembly, if anyone should doubt that.
    Best regards.
    I thought the best thing to do is simply to explain what I'm actually doing.
    In short, I need to derive the Lightness/Luminance level of a pixel. This of course can be done a number of way. Initially I experimented with image magic, but when I couldn't figure it out, I thought: "Hey, why not learn something along the way?"
    So here I an, trying to do some assembly under linux.
    For those interested the process is actually rather sinbple:
    1. get and convert the rgb input as needed.
    2. Determine the highest and lowest channel (progress so far):
    mov ax, $1;
    mov cx, $2;
    mov dx, $3;
    cmp ax, cx;
    jng else;
    mov ax, ax;
    mox bx, cx;
    jmp next;
    else:
    mov ax, cx;
    mov bx, ax;
    next:
    cmp dx, ax;
    jng else2;
    mov ax, dx;
    jmp end;
    else2:
    cmp bx, dx;
    jnl end;
    mov bx, dx
    end:
    3. add the two values and divide by two. possible implement a way to check if the addition is even or not, so to enable proper rounding.
    4. output the result in one form or another.
    Last edited by zacariaz (2012-09-03 20:30:14)

    Lux Perpetua wrote:
    zacariaz wrote:
    Well, at the same time it makes sense and it don't.
    I makes sense to have a "common language", so to speak, so that various applications can be piped together.
    At the same time however, it's a waste to have the majority of the code dedicated to making conversions. First one for the input and then one for the output.
    But that life I guess.
    Thanks for now.
    When you run a program on a Linux system, it ultimately all boils down to the following function:
    int execve(const char *path, char *const argv[], char *const envp[]);
    Without going into full detail: the first argument is the path to the program being executed. The second argument is literally the "argv" argument list the program sees (which is a null-pointer-terminated array of pointers to null-character-terminated strings). The third argument is the environment. Relevant to you is the second argument. It doesn't matter if it's an assembly program, a C program, or a shell script; the "command-line" arguments to the program, i.e., the argv array, are pointers to strings.
    Lest you have the brilliant idea to take an integer apart into bytes and stick them in a string as one of the argument as some others have suggested, you should consider the following: what if one of the bytes of the integer is 0? That technically ends the "string," and everything following that byte is discarded by execve. Adding 1 to all the bytes wouldn't work, since 0xff would wrap around to 0 again. To make it work, you'd need to encode the integer in some other complicated way to avoid null characters and then decode it inside your program. In other words, you might as well just pass an ordinary string and parse it with atoi or strtol.
    You are of course right, and thanks for the very nice explanation, however it's still a pain in the but.
    I like working with number, not with letters, but enough of this.
    Thanks to all and to all a good night, day or whatever you please.
    Best regards

  • [plasma] Add icon of "command line" on desktop [Solved]

    Hi,
    for my work i use a ssh redirect port to make some applications (rdp, samba...) works and like this i can work outside like if i were inside the factory. So on kde4 i could put an icon with the command line, directly on the desktop.
    I guess it is possible to do the same on kde5. For simple application on kde5 i drag on the screen but it is not possible to see inside it and to change the code that is use.
    Is ther a way to do that on kde5 (plasma).
    Thanks
    Sincerely
    Last edited by archqt (2015-05-04 11:47:16)

    damjan wrote:Right click the "K" menu - the one that opens kickoff - and choose the "Edit applications…" menu.
    Then add you app, remember to check the "run in terminal" option.
    Thanks but is there any way to only have icon on desktop and not a line on the menu ? I can see the 2 are connected.
    Thanks

  • [solved] Limit to the pacman command line buffer?

    Is there such a thing as a limit to the number of characters in a pacman command line?
    It's easy enough to get past this with multiple calls to pacman but presents a problem with archiso where the apps are all listed in a single file that is used to call pacman only once. I might add that I'm using local repos in both instances below.
    The code below run as a single call to pacman...
    pacman -S \
    galculator \
    gnumeric \
    gimp \
    gksu \
    gnome-specimen-light \
    gnome-system-monitor
    ...produced the error below...
    error: target not found:
    galculator v2.1.2, (c) 2002-2013 Simon Flöry
    Usage: galculator [options]
    options:
    (GTK options)
    -h, --help Show this usage message
    -v, --version Show version information
    Compiled against GTK version 3.8.2
    Linked against GTK version 3.10.3
    Quad-precision floating point numbers.
    /tmp/xxx: line 7: gnome-specimen-light: command not found
    ...but running the script with multiple calls to pacman...
    pacman -S galculator
    pacman -S gnumeric
    pacman -S gimp
    pacman -S gksu
    pacman -S gnome-specimen-light
    pacman -S gnome-system-monitor
    ...everyting gets installed...
    warning: galculator-2.1.2-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): galculator-2.1.2-1
    Total Installed Size: 1.03 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [##################################] 100%
    (1/1) checking package integrity [##################################] 100%
    (1/1) loading package files [##################################] 100%
    (1/1) checking for file conflicts [##################################] 100%
    (1/1) checking available disk space [##################################] 100%
    (1/1) reinstalling galculator [##################################] 100%
    warning: gnumeric-1.12.8-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): gnumeric-1.12.8-1
    Total Installed Size: 32.30 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [##################################] 100%
    (1/1) checking package integrity [##################################] 100%
    (1/1) loading package files [##################################] 100%
    (1/1) checking for file conflicts [##################################] 100%
    (1/1) checking available disk space [##################################] 100%
    (1/1) reinstalling gnumeric [##################################] 100%
    warning: gimp-2.8.8-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): gimp-2.8.8-1
    Total Installed Size: 64.69 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [##################################] 100%
    (1/1) checking package integrity [##################################] 100%
    (1/1) loading package files [##################################] 100%
    (1/1) checking for file conflicts [##################################] 100%
    (1/1) checking available disk space [##################################] 100%
    (1/1) reinstalling gimp [##################################] 100%
    warning: gksu-2.0.2-4 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): gksu-2.0.2-4
    Total Installed Size: 0.05 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [##################################] 100%
    (1/1) checking package integrity [##################################] 100%
    (1/1) loading package files [##################################] 100%
    (1/1) checking for file conflicts [##################################] 100%
    (1/1) checking available disk space [##################################] 100%
    (1/1) reinstalling gksu [##################################] 100%
    warning: gnome-specimen-light-0.4-2 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): gnome-specimen-light-0.4-2
    Total Installed Size: 0.20 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [##################################] 100%
    (1/1) checking package integrity [##################################] 100%
    (1/1) loading package files [##################################] 100%
    (1/1) checking for file conflicts [##################################] 100%
    (1/1) checking available disk space [##################################] 100%
    (1/1) reinstalling gnome-specimen-light [##################################] 100%
    warning: gnome-system-monitor-3.10.1-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): gnome-system-monitor-3.10.1-1
    Total Installed Size: 4.53 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [##################################] 100%
    (1/1) checking package integrity [##################################] 100%
    (1/1) loading package files [##################################] 100%
    (1/1) checking for file conflicts [##################################] 100%
    (1/1) checking available disk space [##################################] 100%
    (1/1) reinstalling gnome-system-monitor [##################################] 100%
    Last edited by KairiTech (2013-11-17 17:12:40)

    There is likely a limit, but that's not what the problem is here. Highlight the text in the codeblock:
    KairiTech wrote:pacman -S \
    galculator \
    gnumeric \
    gimp \
    gksu \
    gnome-specimen-light \
    gnome-system-monitor
    You are including spaces after the backslashes on multiple lines, so you are not escaping the newlines but only the spaces. The first line simply calls pacman with a space, which is why you get "target not found" (there is no package named " ") instead of "no targets specified".
    The next line invokes galculator with gnumeric, gimp and " " as arguments, etc.
    Incidentally, if you need to deal with long package lists, you can pipe them via other commands or from files, e.g.
    pacman -S - < /path/to/file/list
    cmd_that_prints_long_list | pacman -S -

  • Bash: wrapping long command line [SOLVED]

    I'm trying to configure my bash to wrap long command lines.  I am looking for a behaviour similar to tcsh where, at the border of the window,  the command is continued on the next line.  In bash, the command continues at the begining of the same lines wich is messy.  I tried using
    set horizontal-scroll-mode on
    in my ~/.inputrc but the continuation doesn't start at the windows border. I can post screenshots if that would help.
    Thanks.

    putting the line in .bashrc have no effect.
    Here is my .bashrc
    export EDITOR=emacs
    export PAGER=less
    export LESS="-f -r"
    export BROWSER=firefox
    PS1='[33[01;34m]#[33[00m] 33[01;31m]u@H[33[00m]33[01;39m] w $33[00m] '
    # create an xauth key for root user
    umask 377
    /usr/X11R6/bin/xauth extract /tmp/user.xauth $DISPLAY
    umask 022
    #set horizontal-scroll-mode on
    source ~/.aliases
    my .bash_profile
    . $HOME/.bashrc
    my .inputrc
    "e[A": history-search-backward
    "e[B": history-search-forward
    set show-all-if-ambiguous on
    set page-completions off
    set completion-query-items 10000
    set horizontal-scroll-mode on
    The screenshots:
    With tsch (what I'm looking for)
    With set horizontal-scroll-mode off:
    If I continue to press the 'a' key, it overwrite the whole line and wraps at the window border.
    With set horizontal-scroll-mode on:
    It wraps 2 inches before reaching the window border.
    [/img]

  • Command line set time

    My kid's iMac doesn't check the time very often even though it is set to do so automatically. Back when I was on linux I could write a little shell program to get the correct time off the network and set the computer's clock and then put the program in crontab. I'd like to do this for his computer but don't know
    how. Thanks, Steve

    Maybe it doesn't check the time because of the
    firewall? If the firewall is turned on in System
    Preference > Sharing, check "Allow: Network Time".
    Got it! Thanks. Why my computer was set appropriately
    and my son's wasn't, I don't know, but this should fix it.
    (I didn't even know about this setting.)
    Thanks, Steve
    (This solved the problem but didn't answer my question. I'm
    an escapee from Linux. I like command line options (but of
    course don't need it here anymore), in particular, I wish there
    were command line options for iCal.)

Maybe you are looking for