Programming :: Script Wich Will Act As And Interactive Front End To An Emailer?

Apr 6, 2009

Code:-ask the user which files they want to sent (files not needed to be in the same directore-tar all the files together-Gzip the tarfile-Uuencode the gsipped file (so more email programs can use it)-ask user who to send email to, possibly more than one person-I want it to be clear and easy to use and display what it is doing while an action is taken place.I have no clue where to begin. I think perl would be the best option, but I am not sure, how would I make this able to run with am email program and I am unaware how to tar and gzip files or Uuencode the gsipped files.

View 3 Replies


ADVERTISEMENT

Programming :: How To Turn Non-interactive Shell Into Interactive Shell?

Feb 4, 2011

I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.

Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.

View 2 Replies View Related

Programming :: Graphical Programming Front - For Beginners?

Oct 31, 2010

What graphical programming front is best to use for Java and Objective-C programming. I have something in mind like Xcode on Mac.

View 4 Replies View Related

Programming :: Testing Interactive Shell $- $PS1

Mar 22, 2010

I'm writing a bash script that can be run by crontab or by a user interactively.

If the script is run by a user interactively, it will ask for a parameter interactively.

If the script is run by the crontab, it validates if a command line parameter is provided.

In doing so, I cannot get these tests to work inside the bash script

Code:

This shell is not interactive

How the tests be done inside a script?

View 5 Replies View Related

Programming :: Run Interactive Commands From A Shell Script?

Aug 24, 2010

i need to run a command from a shell script that requires me to answer "Yes" to 2 questions that the command asks before it kicks off. how do i do this? i thought it was something like this.. from inside the parent script:

sh test.sh << "EOF
Yes
Yes

[code]...

View 3 Replies View Related

Programming :: Make A Cronjob Or At Job User Interactive?

Sep 2, 2010

Any pointers to make a shell script in cronjob or using at to be user interactive. We have a requirement to script a program where it prompts the users in CUI for feedback and capture the output in a text file and act based on the feedback.For eg: At pre-defined time i should prompt the acitve users whether it is ok to shutdown, whose feedback would be captured in a text file. Post which act on the updates in the text file

View 4 Replies View Related

Programming :: BASH Shell Differences: Login Or Interactive

Feb 18, 2011

Intuitively I think that the Login Shell and the Interactive Shell are the same applications but have access to different environmental variables.It this true? Why is there more than one type of shell anyways? You can change users with the interactive shell, why not log on with it to?

View 10 Replies View Related

Programming :: Launching Interactive Gnome-terminal With A Command (and Not Exiting)

Oct 13, 2010

I want to have a script (tcsh/bash/python) that launches a bunch of gnome-terminals (or 1 with multiple tabs). And I want it to execute a command, but keep the shell interactive. Currently, if you type gnome-terminal then it launches a new interactive shell, but if you give it the execute flag, then it executes the command and quits (or stays open, but non-interactive depending on the users gnome-terminal settings).

I have this command which I want to run automatically before I start working. What the command does is dynamic and different for each shell. It takes arguments. So it's not something I can take care of in a .cshrc type file.

View 3 Replies View Related

Ubuntu Security :: Setting Up A Root Login Detector And Emailer

Apr 12, 2011

I got this from a website (cant remember URL).

Be warned if someone actually does manage to login as root on your computer or server.

Edit .bash_profile for root. How do I do this?

Code:
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" your@email.com

Replace your@email.com with your own email. Save the file and exit.

View 9 Replies View Related

Programming :: Weird Recv() Buffer Back To Front??

Sep 20, 2010

I have been developing some code which I have been testing an another i386 system. However I have been getting some weird data received on a socket I am communicating with some 3rd party hardware, I have opened a socket to read data on the hardware's telnet port. The data being read is as expected and my code appears to function correctly.

However I have now began testing the code on a target platform, this platform is of a better spec than my development system. When I read data from the socket using recv(), all the expected data has not been read.A chunk of data from the beginning is missing and a portion of data that would be at the end is now at the beginning of the buffer. I'll try and illustrate this below.

[Code]...

View 6 Replies View Related

Fedora :: Cannot Choose Wich Operation System To Log Into?

Jun 19, 2010

user that started using Ubunto 6 month ago and I have now also installed fedora 13 to see wich operation system I like best... I have 3 primary partitions 1 for windows 1 for fedora and 1 for ubuntohen I installed ubunto I had a LILO (linux loader) like program that made me choose between Ubunto and Windows at start up... after installing fedora it goes automaticaly to fedora w/o making me choose... I can still mount my win/ubunto partitions so I haven't messed up compleatly... how do I "restablish" the linux loader deamon so that I can choose freely between the 3 operation systems?

second... when I installed linux stupid windows killed my backup hard drive where there are a lot of valuable resarch data... so now I have a 6 gb "unalocated" partition that I would love to be able to recover.... I would appriciate if somone had the answers to my guestions... so fare I like fedora because it seems better organised than ubuntu though the difference between the two linux distrubitons are hardly notacable

View 4 Replies View Related

Hardware :: Wich Has Low Printing Costs And Is For Home Office Fast?

Nov 18, 2010

I am looking to buy a 3 in 1 Printer (Copy, Scan) Sometimes I'd like also to print fotos. Often I will have to scann. Wich brand would you buy and why? Wich has low printing costs and is for home office fast? And bevore all that, do i get the drivers for all functions?

View 3 Replies View Related

Programming :: Write A Perl Script Which Will Give An Interactive Session To A User To Execute Command On The Server

Feb 25, 2011

I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :

Code: !/usr/bin/perl -w
use strict;
use Net::SSH::Perl;
my $host = '192.168.1.1';
my $username = 'user';
my $login_passwd = 'test123';

[Code]...

View 2 Replies View Related

General :: Non-interactive Way To Set A Password?

Aug 11, 2010

Is there a non-interactive way to change a user's passwd short of using expect? I'm using Debian.If not, then I guess I need to get this expect script working:

Code:
#!/usr/local/bin/expect -f
set username $env(UNAME)

[code]...

View 2 Replies View Related

Fedora Installation :: Get Into Interactive Start Up?

Apr 6, 2009

Posting from Splashtop as i can't get past keytouch-apid in the boot process,Yeah me bad so i would like to disable it so i can complete the process.Using the interactive startup seemed the way to go but how does one get there before udev starts up?Or is there something else i could try.

View 2 Replies View Related

Fedora :: Interactive Startup Not Working?

Feb 20, 2011

My problem is: One of my services has failed to start. All I need is just go into interactive startup and ignore that service. The system is encrypted as LUKS. I press 'i' before and after entering the phrase (it asked me "Password for filesystem"). But interactive startup seems not working. All the services go to start without my permission. I mean there is no question such as "Start XXX [Y/N]?"

In the past I used CentOS for some months, and interactive startup (by pressing 'i' on boot time) was fine. I could allow or not what service should be started.

I have googled and found these:

[URL]

View 2 Replies View Related

Ubuntu :: Run Interactive Script After Login

Jan 26, 2011

I need to run a script that prompts the user for some input and takes action based on that input. It must run at the end of the login process, after the desktop is displayed.I tried putting it in ~/.bash_login, but it didn't run. Do I need to tell /etc/profile to run ~/.bash_login? I thought it looked for it & ran it if it was found.

A related question would be - Can I make it so the terminal session that is running the script be the only thing that the user can do? In other words, they can't click on anything on the desktop or in the panels and have it run until after they respond to the input request.

View 1 Replies View Related

Ubuntu :: Weather.com Interactive Map In Firefox?

Mar 10, 2011

The interactive map on weather.com no longer works for me in Firefox. I'm just looking for some feedback from other users if they can see the map or not. I'm using Lucid with current updates.

View 3 Replies View Related

General :: Making Sh Shell Interactive?

Mar 24, 2011

how can I make my sh interactive by default. That I don't have to always type --interactive everytime I log in. I want it to be always interactive. #2- how also do I turn of --posix mode parmanently ? Is there a line I need to drop somewhere or what do i do.

View 4 Replies View Related

Security :: Gpg - Passphrase Goes Interactive With V1.1.8-4.fc13

Aug 4, 2010

I need an non-interactive, symetric, passphrase mechanism that can be used on machines beyond my sys-admin control. Currently, I use the Python code (with variants):

Stat, Output = commands.getstatusoutput(
"gpg -c --passphrase=%s '%s'"%(Password, TarFileName))

to encrypt and decrypt files (tar balls). The "Password" is generated by a Python code on a singular removable flash drive. It worked with FC11 and Windows, but with FC13 I get an interactive dialog, which gets canceled, and then: can't connect to `/home/{a user id}/.gnupg/S.gpg-agent': No such file or directory

gpg-agent[3432]: command get_passphrase failed: Operation cancelled
gpg: cancelled by user
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of `testdata' failed: Operation cancelled

The operator does not know the pass phrase. This is a single user mechanism which relies upon the mounting of the special flash drive to work. The application is portable across many platforms and hosts, but can only be used by the possessor of the flash drive.

View 1 Replies View Related

Software :: Automate Interactive Cli Installs?

Nov 22, 2010

can provide recommendations on any projects that can fully automate the install process of an interactive application. I am doing installs of applications such as websense and they are all interactive. I would like to automate all interactive installs in my environment. I did find the following: [URL]

View 1 Replies View Related

Slackware :: How Are Variables Set For Interactive Shells

May 5, 2010

I am trying to figure out where variables are set for interactive shells? In particular, I am trying to have LS_OPTIONS inherited by interactive shells as it is by login shells. I understand LS_OPTIONS is set in /etc/profile, and this may not be processed by interactive shells but by login shells. However, I also note other variables such as PATH and INPUTRC are set correctly in interactive shells, and these are also set in /etc/profile from what I understand. So how is it determined which variables are inherited by all shells, and which are just for login shells?

View 16 Replies View Related

CentOS 5 :: Non Interactive User - Account Currently Not Available

Jan 11, 2010

I'm still quite wet behind the ears with CentOS/Unix. What I'm trying to do is to setup a non interactive user, where I login with an interactive user and su to the non interactive. I have set the non interactive with /sbin/nologin (through the GUI), but when I login with the interactive user and su to the non interactive user I get the following:
"This account is currently not available".

View 5 Replies View Related

Fedora :: Other Non-interactive Network Downloader Besides Wget

Sep 7, 2011

Are there any non-interactive network downloaders like wget that come with fedora by default? I noticed that wget doesn't come with fedora.

View 2 Replies View Related

General :: Interactive Ssh Session Through Gateway Machine

Sep 6, 2010

Possible Duplicate:Forward SSH traffic through a middle machine.I am looking to get an interactive ssh session on a remote machine, but must login via a gateway.For example, right now I do the following:

@local % ssh <user>@<gateway>
@gateway % ssh <user>@<remote>

Is it possible to achieve the same thing in a single command from my local machine? I have tried:

@local % ssh <user>@<gateway> 'ssh <user>@<remote>`

From the output i am indeed able to login, but do not get an interactive session. I took inspiration for this attempt from using ssh to run a command remotely.

View 1 Replies View Related

General :: Re-enter Interactive Mode After Ctrl-z?

Jun 14, 2011

In interactive mode (in Octave, gnuplot, R, etc.) I occasionally press Control + z by mistake. This pauses the program and kicks me back to the terminal.Is it possible to re-enter the original interactive mode (with all the stored variables)?

To reproduce:

~> octave
octave:1> a = [1:10];
octave:2> ^Z

[code].....

How can I recover my session with the variable a defined?

View 2 Replies View Related

Ubuntu :: A Bootable CD To Get To An Interactive Command Line?

Jan 19, 2011

As I have posted here [URL], my laptop powered down during an update because I forgot to plug it into the mains power. Anyway, after going through the thread I referred to above, I learned that I must chroot into the existing installation and patch it up. I can do this using a live CD but unfortunately, I gave my most recent live CDs away and the Live CDs I have left don't recognize the file system on the current Ubuntu installation. (If I remember correctly, the current [broken] installation is 10.04). Downloading a new live CD is a bit difficult as internet speeds over here aren't very fast. I was wondering if there is another alternative bootable CD that I could use to get a interactive command line which I can use to "chroot".

View 9 Replies View Related

Ubuntu :: Speed Up Zoom For Interactive Map Wallpaper ?

Feb 2, 2011

I'm running Kubuntu 10.04 and have activated the interactive map wallpaper. Zooming with the mouse wheel is unfortunately very slow. I have tried to adjust the speed by changing System Settings > Mouse > Advanced: Mouse wheel scrolls by to max, i.e. "12 lines", but it has no effect, the zooming is still very slow. Is there any way to speed it up? If possible I would like to have the same zoom speed as when using Google Maps [url] in Firefox.

View 2 Replies View Related

General :: Disabling Interactive Boot In Red Hat / CentOS

Feb 12, 2010

How can I disable the interactive boot up process? Also what is the pros and cons to doing this? Will this affect my being able to get to runlevel 1?

I have been googling it but not really clear on the pros/cons etc.

I am talking about a server class machine that is in a locked room, not a desktop.

I know it can be turned off in /etc/sysconfig/init # Set to anything other than 'no' to allow hotkey interactive startup... PROMPT=yes

View 4 Replies View Related

General :: Assigning A User A Non-interactive Login?

Apr 16, 2010

I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved